Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / November 2003

Tip: Looking for answers? Try searching our database.

Resizing forms in vb.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 12 Nov 2003 15:12 GMT
In VB 6 I used to just set a property to false in order
to prevent the resizing of forms, does anyone know how to
do this in VB.Net?

Thanks in advance,

Jeff
Jim - 12 Nov 2003 15:40 GMT
Jeff,

I think you can just place bounds on your form width and
height on the forms resize event to prevent the user from
resizing it.

Hope this helps!

Jim

>-----Original Message-----
>In VB 6 I used to just set a property to false in order
[quoted text clipped - 5 lines]
>Jeff
>.
Jim \(again\) - 12 Nov 2003 15:46 GMT
Woops Jeff, I found a better way and a MUCH simpler way.  
I didn't see this before, but simply set the formborder
property to either 1,3 or 4.

Jim
>-----Original Message-----
>In VB 6 I used to just set a property to false in order
[quoted text clipped - 5 lines]
>Jeff
>.
Jay B. Harlow [MVP - Outlook] - 12 Nov 2003 16:01 GMT
Jeff,
The easiest way is to set the Form.FormBorderStyle to Fixed3D, FixedDialog,
FixedSingle or FixedToolWindow depending on the effect & style of border you
want.

Alternatively you can set the Form.MinimumSize & Form.MaximumSize to the
size you want the form restricted to.

Form.MinimumSize & Form.MaximumSize are especially handy if you want to
allow some change but not a lot of change.

Hope this helps
Jay

> In VB 6 I used to just set a property to false in order
> to prevent the resizing of forms, does anyone know how to
[quoted text clipped - 3 lines]
>
> Jeff

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.