|
-
November 11th, 2005, 03:10 PM
#1
Deny resizing on form?
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-
-
November 11th, 2005, 03:12 PM
#2
Re: Deny resizing on form?
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.
Last edited by ChaosTheEternal; November 11th, 2005 at 03:23 PM.
Reason: Ha... if you don't want resizing, you wouldn't want maximizing either, right?
-
November 11th, 2005, 03:17 PM
#3
Re: Deny resizing on form?
 Originally Posted by ChaosTheEternal
Don't forget to reset Min Button and Max Button to True, though. Changing to FixedSingle sets them false.
I'd Leave the max button to false.. if your creating a form that is not for resizing.
But otherwize your 100% right..
Gremmy
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
November 11th, 2005, 03:20 PM
#4
Re: Deny resizing on form?
 Originally Posted by GremlinSA
I'd Leave the max button to false.. if your creating a form that is not for resizing.
Doh. Yeah, might want to leave Max Button false.
Thanks for pointing that out.
-
November 11th, 2005, 03:24 PM
#5
Re: Deny resizing on form?
Thanks Gremlin & Chaos
That was exactly it!!
Paul
-
January 1st, 2006, 01:53 PM
#6
Re: Deny resizing on form?
 Originally Posted by GremlinSA
I'd Leave the max button to false.. if your creating a form that is not for resizing.
But otherwize your 100% right..
Gremmy 
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
-
January 1st, 2006, 02:18 PM
#7
Re: Deny resizing on form?
 Originally Posted by VBprogrammer2006
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..
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.
As for the Min/Max button
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.
These properties have to be set at design time.. using the forms properties box on the righthand..
Hope this Helps..
Gremmy..
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|