By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,208 Members | 1,456 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,208 IT Pros & Developers. It's quick & easy.

Double click on top of form, no maximize

P: 11
Hello everyone,

We are trying to protect maximizing of a .net form if we double click on the top blue area.
We tried a lot of form events, for example: DoubleClick / Click, but form is maximizing.

Can someone please give us script to protect to maximize the form.

Nice regards,
Aug 28 '06 #1
Share this Question
Share on Google+
6 Replies

P: 4
Give it the the size you want and change the MaximizeBox property (of the form) to false
Aug 30 '06 #2

P: 11
Thanks ms6,

But when the MaximizeBox still is enabled, what are the posibillities to stop the maximizing of the form by double clicking or using the maximizeBox?

Aug 30 '06 #3

P: 366

if u want ur window size not to be maximised then make the maximisebox property to false then the window size will be constant as it is at the design time

try it hope may help u


Aug 31 '06 #4

P: 11
Thanks all for the information,

The problem is that double clicking on the top or using the maximisebox box may not have the effect that the form will maximize. What script syntax do I have to use??

Aug 31 '06 #5

P: 4
Hello Michelle. I am using ASP.NET 2.0

All I have to do to prevent users from maximizing the Windows form is set the MaximizeBox property (of the form) to false

There is no need to write any code/scripts
Aug 31 '06 #6

P: 11
Hello all,

I have seen for a few weeks a form with the maximisebox enabled. Clicking double on the top or using the maximisebox resulted that the size of the form was increasing but with the help of a certain event (? I believe ?) it schrinked back to the original size!

Beeing very interested in code I hope someone can help me.

Sep 2 '06 #7

Post your reply

Sign in to post your reply or Sign up for a free account.