How do I limit the form to unmovale and unresizable?  
Author Message
AndrewMeyers





PostPosted: Fri Nov 25 03:54:42 CST 2005 Top

Visual C#.Net >> How do I limit the form to unmovale and unresizable?

Hi,

How do I limit MyWinForm so it can't neither movable nor resizable?
Thanks for help.


Jason

DotNet187  
 
 
Jon





PostPosted: Fri Nov 25 03:54:42 CST 2005 Top

Visual C#.Net >> How do I limit the form to unmovale and unresizable?
> How do I limit MyWinForm so it can't neither movable nor resizable?
> Thanks for help.

If you specify the FormBorderStyle to a non-resizable one, I don't
believe users will be able to resize it. If you specify the
FormBorderStyle to FormBorderStyle.None, they won't be able to move it
- but they won't be able to close it either. (Appropriate for a splash
screen, for example.)

Personally I don't *want* to have things on my screen that I can't
resize or move though - it's worth thinking very carefully before
imposing this kind of restriction (I know it's sometimes appropriate
though).

Jon