473,413 Members | 1,679 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,413 software developers and data experts.

this.MaximizeBox (enable/ disable)

Hello.

I have a form with some controls on it. One of these controls is a button
that disables/ enables all the other controls.
The form itself should also be "disabled/enabled", so I set
this.FormBorderStyle = FormBorderStyle.Sizable;
to "enable" and
this.FormBorderStyle = FormBorderStyle.Fixed3D;
to "disable" the form (no resize).

Doing it like this everything is ok. But unfortunately I also want that the
maximize button in the upper right corner to be disabled, so I also set the
MaximizeBox property. And here comes the problem:

Minimizing the form, the taskbar is overlapped - not anymore visible - by my
form when beeing activated again!!!
What can cause such a strange behavior? I am really thankful for any
thoughts and comments.

Greetings and thanks in advance,
Tim.
Nov 16 '05 #1
1 3810
Tim Bücker <ti*************@web.de> wrote:
Minimizing the form, the taskbar is overlapped - not anymore visible - by my
form when beeing activated again!!!
What can cause such a strange behavior? I am really thankful for any
thoughts and comments.


I think I see what you mean -- when I *maximize* the form and /then/
disable the maximize box (actually, the maximize box is now the *restore*
box, because the form is now maximized), the form stays on top of the
taskbar, even though my taskbar is set to stay on top of other windows.
This didn't happen if the form wasn't maximized at the time that
MaximizeBox was set, however.

Is this the problem that you observed?

Also, if I then double-click the form's border (equivalent to clicking an
enabled restore button), the form seems to restore again, and then resize
itself. Once this happens, the form doesn't stay on top of the taskbar
anymore.

I suppose that this is a bug, but I don't think that disabling the restore
button on a maximized form is a good idea at all.
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Derek White | last post by:
Ok here's the deal. We are finally getting DSL again... but our PC is in the living room... and the youngest has figured out that if he hits the right keys... he can bring up Internet Explorer....
1
by: hortoristic | last post by:
We are using JavaScript to Enable/Disable certain fields on web pages based on business rules. A simple example is if when using an option type tag, and the two options are Yes and No. If YES...
1
by: Lim Tau Wan (SG) | last post by:
Currently, our application requires to use the COM Port but it seems that the COM Port is being utilised by other process. Therefore if I need to use the COM Port, I have to manually disable and...
4
by: mabond | last post by:
Does anyone know some code that will allow me to enable and/or disable a task which already exists in the task scheduer. I have a task which runs at 15 min intervals and from time to time I want to...
0
by: Vear | last post by:
Hi, I looking for the method to disable and enable user accounts. I want the user to have to validate their account via email. I have all of the email stuff working but I can't figure out how in...
13
by: John Salerno | last post by:
The code to look at is the try statement in the NumbersValidator class, just a few lines down. Is this a clean way to write it? i.e. is it okay to have all those return statements? Is this a good...
3
by: x taol | last post by:
when the specific mdb file be opend, i want to open maximize the aceess db. and maximizebox is disabled. *** Sent via Developersdex http://www.developersdex.com ***
3
by: psroga | last post by:
Can anyone look at this code and let me know why pthread_mutex_unlock and pthread_mutex_lock are giving me the "phtread_mutex_unlock" was not defined in this scope error. I am compiling the code...
3
by: sakthikumarb | last post by:
Hi.. In local system, under universal serial bus controllers in Device manager.We can enable and disable the particular USB port. How can we do the enable and disable the particular USB port in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...

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.