Hi,
I want to make a child-window fixed... not allow a user to expand/contract the child-window size.
Which form property controls that?
Thanks
-Paul-
Printable View
Hi,
I want to make a child-window fixed... not allow a user to expand/contract the child-window size.
Which form property controls that?
Thanks
-Paul-
It's BorderStyle. Set it to FixedSingle (I think it's called, I know it's option 1, while Sizable, the default, is 2) and they can't change the size.
Don't forget to reset Min Button back to True, though. Changing to FixedSingle sets Min and Max Button to false automatically.
I'd Leave the max button to false.. if your creating a form that is not for resizing.Quote:
Originally Posted by ChaosTheEternal
But otherwize your 100% right.. :thumb:
Gremmy :wave:
Doh. Yeah, might want to leave Max Button false.Quote:
Originally Posted by GremlinSA
Thanks for pointing that out.
Thanks Gremlin & Chaos
That was exactly it!!
Paul
Quote:
Originally Posted by GremlinSA
I want to make a child-window fixed... not allow a user to expand/contract the child-window size.
would you mind codeing it for me or show me how to code it step by step
thanks
You cannot code this..Quote:
Originally Posted by VBprogrammer2006
As for the Min/Max buttonQuote:
VB Books Online
Syntax
object.BorderStyle = [value]
Applies To
Form Object, Forms Collection, ....
Returns or sets the border style for an object. For the Form object and the TextBox control, read-only at run time.
These properties have to be set at design time.. using the forms properties box on the righthand..Quote:
VB Books Online
Syntax
object.MinButton
object.MaxButton
Applies To
Form Object, Forms Collection
Returns. a value indicating whether a form has a Minimize/Maximize button.
Hope this Helps..
Gremmy..