Valhalla Legends Forums Archive | Battle.net Bot Development | Maximizing Bot Help

AuthorMessageTime
Antichrist
Alright, this is hard to explain, but hopefully you get it. My bot, I've got the layout done and everything. When you run it, and you go to maximize it, how do you get it so everything resizes to fit the screen and not just have the bot stay the same size and the blank form filling in the space where the bot doesn originally fill. Hopefully you guys understand what I'm trying to ask. Thanks!
August 22, 2004, 2:21 AM
Newby
If it's Visual Basic (I'm assuming it is, you called your window a form!) then resize the controls (object.Move) when Form_Resize is fired.
August 22, 2004, 2:28 AM
Antichrist
Oops, yes I did mean Window. I'm using VB .net, if that helps at all.
August 22, 2004, 2:30 AM
ChR0NiC
[quote author=Antichrist link=board=17;threadid=8303;start=0#msg76699 date=1093141805]
Oops, yes I did mean Window. I'm using VB .net, if that helps at all.
[/quote]

Newby answered your question for you, you need to make changes to your objects when Form_Resize fires, so everytime your form's size changes, your objects change accordingly.
August 22, 2004, 2:47 AM
Antichrist
Alright, thank you Newby.
August 22, 2004, 2:47 AM
Myndfyr
[quote author=Antichrist link=board=17;threadid=8303;start=0#msg76699 date=1093141805]
Oops, yes I did mean Window. I'm using VB .net, if that helps at all.
[/quote]

VB .NET has resizing built-in with the framework. You need to set your controls' Dock property or Anchor property. My bot resizes very well, and has no code for resizing controls outside of Dock and Anchor.
August 22, 2004, 6:51 PM
Antichrist
Awesome, thanks MyndFyre.
August 22, 2004, 7:01 PM

Search