473,435 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,435 software developers and data experts.

Double click on top of form, no maximize

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
6 2675
ms6
4
Give it the the size you want and change the MaximizeBox property (of the form) to false
Aug 30 '06 #2
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
nmsreddi
366 256MB
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
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
ms6
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
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

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

Similar topics

3
by: snake_2k | last post by:
I need to know how to intercept and neutralize the doubleclick event that happens when someone double clicks the titlebar of a window. I borrowed some encapsulation code that keeps the user from...
1
by: sachin | last post by:
How to check Maximize button click event of a Form or how to check whether present size of form is maximum available size
3
by: tolisss | last post by:
Hi I have a form with minimize,maximize button=false and startup window state= maximized but when the user double click on the form title bar caption the form's size changes How do i prevent...
5
by: satankidneypie | last post by:
Hi, does anyone have any idea how to trap a double click event in the title bar of a form? I'm wanting to use help icons on titlebars, but this means that I can't have minimize or maximize...
1
by: kiran | last post by:
I create a Modal Dialog in C#. and opening with Form.ShowDialog() function. When I double click on the title bar of the form , it's windows state becomes Maximized that mean it's size is...
3
by: Neil Wallace | last post by:
Hi, This is an odd one. I've been struggling to get "double click" to work well for my controls. The same event handler works perfectly for buttons, but not for labels. Can anyone tell me...
5
by: Mrozu | last post by:
Hi When I maximize a form in VB.Net 2003 the bottom of the form gets hidden by the start bar (so my status bar is invisible). How can I get my app to maximize to the usable screen area above...
6
by: Jim Devenish | last post by:
I have an unbound form that displays all the days of the year as a calendar. It has 12 rows of text boxes with either 29,30 or 31 in each row. Text box names are of the form: display_01_01,...
5
by: tezu | last post by:
hi all, Im developing an UI in c# , it has many controls like tabcontrol,listbox , treeview,textbox n all... i m painting the form by using my own function. and also i have my own minimize,...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.