|
-
Jul 28th, 2007, 06:44 AM
#1
Thread Starter
Hyperactive Member
[2005] Locking a form
How do i lock the form size? so that it wont get maximized
-
Jul 28th, 2007, 08:00 AM
#2
Re: [2005] Locking a form
1. Set the form's MaximizeBox = false to disable the maximize button
2. Handle the form's resize event and check the windowstate. If its windowstate = windowstate.maximized then change it back to normal.
-
Jul 28th, 2007, 08:01 AM
#3
Re: [2005] Locking a form
Well, there are a couple ways to do it, you can set a maximum size and remove the maximize button or you can make a fixed form. Check out the form properties (MaximumSize, FormBorderStyle and MaximizeBox)
-
Jul 28th, 2007, 08:04 AM
#4
Thread Starter
Hyperactive Member
Re: [2005] Locking a form
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
|