How can I make all of the buttons, frames, etc... resize with the Form when the person max or min the Form?
I understand how to do it with a text box...sorta..still need help on it...
Printable View
How can I make all of the buttons, frames, etc... resize with the Form when the person max or min the Form?
I understand how to do it with a text box...sorta..still need help on it...
Hey Jimlin, the code you gave could've been in one line you know, even if it doesn't work it could've been shorter.
Code:txtNotePad.Move frmText.ScaleLeft, frmText.ScaleTop, frmText.ScaleHeight, frmText.ScaleWidth
Your code doesn't seem to work. A multilined textbox becomes a single lined box. Maybe I did something wrong. I know that my code works though because those four lines of code are what I use whenever I need a notepad-like form in my applications. What else could I really do to shorten my code?
'I make my form the size I like it and thats it..no resize
'min or max that's it.
'I use this resize I found to resize for different
'screen sizes.
'if you need the code just ask and I'll post it here.'
'it isn't completely fool proof but I haven't had any
'terrible handicaps using it...although I haven't played
'around with font sizes on the pc.