How do I make my form bigger during runtime ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I´m tying to make my VB form bigger during runtime, but I can´t find out how
to do. I would like the same function as the "replace" button has in the Find
dialog in VB.NET.
 
Wiggur said:
I´m tying to make my VB form bigger during runtime, but I can´t find out
how
to do. I would like the same function as the "replace" button has in the
Find
dialog in VB.NET.

Me.Size = new Size(newWidth, newHeight);
 
Wiggur said:
I´m tying to make my VB form bigger during runtime, but I can´t find out
how
to do. I would like the same function as the "replace" button has in the
Find
dialog in VB.NET.


If you want to change the form's size only in one dimension, set its
'Height' or 'Width' property. Sample:

\\\
Me.Height = Me.Height + 50
///
 
Hi Wiggur,

Thanks for your post!!

If you want to implement the same function as "Replace" button in the Find
dialog, I think you should first hide the "Replace All" button and the
"Replace With" textbox, then when the user clicked the "Replace" button, we
may dynamically move all the controls below the "Replace" button down some
value(such as the height of the "Replace All" button), then display the
"Replace All" button and the "Replace With" textbox. Also, we should
increase the form's Height property some value to contain the new visible
controls.

This is totally due to your program logic. Hope my information helps you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top