By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,631 Members | 826 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,631 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,
Michelle.
Aug 28 '06 #1
Share this Question
Share on Google+
6 Replies


P: 4
ms6
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?

Michelle.
Aug 30 '06 #3

100+
P: 366
hello

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


regards

nmsreddi
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??

Michelle.
Aug 31 '06 #5

P: 4
ms6
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.

Michelle.
Sep 2 '06 #7

Post your reply

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