Pb minimize modal form

A

Adi Lazar

Hi,

I cannot minimize my win form application when I have a modal form opened.
My mainform is modeless, has mdiChilds, but I need to open modal forms from
mdiChild => I cannot minimize mainform when a modal form is opened. It is
very strange 'cause I can minimize it by clicking "Show desktop" == (windows
keyboard + D) = minimize all windows.
I'm using VS.NET 2002.
Is this a bug ? Or a "feature" ? How can I fix it ?

Thnx for any advice.
 
H

Herfried K. Wagner [MVP]

* "Adi Lazar said:
I cannot minimize my win form application when I have a modal form opened.
My mainform is modeless, has mdiChilds, but I need to open modal forms from
mdiChild => I cannot minimize mainform when a modal form is opened. It is
very strange 'cause I can minimize it by clicking "Show desktop" == (windows
keyboard + D) = minimize all windows.
I'm using VS.NET 2002.
Is this a bug ? Or a "feature" ? How can I fix it ?

That's a feature. You cannot minimize applications that show a modal
dialog and doesn't provide a minimize button in its title bar.
 
B

Bragadiru

Hi Herfried,

I was afraid of. Anyway, I can reduce all open windows to taskbar buttons by
right-clicking an empty area on the taskbar and then clicking Minimize All
Windows,
including my mainform with my modal form => my modal is minimized !!!???,
but not from mainform.Minimize button.
There is an workaround ?

Thanks a lot
 
S

Saurabh

I would put it slightly differently.
Modal form means "Hey I need attention, sort me out before you can do
anything with the rest of the application" The behaviour that you see is the
correct behaviour from windows point of view. Obviously the form is
'Application Modal' not 'System Modal' [I had seen these things in old days
but now everything seems to be application modal only] So you are allowed to
do anything with the system outside the application which is showing a modal
dialog box. You can invoke the task manager and kill your application but
cannot hit the close button of your main application window ;)

I would say that the behaviour is correct and thats how it should be. If you
want to do something else in the system for example get to desktop, if the
minimize all windows functionality had left the application showing modal
dialog as it is, I think that would be more annoying.

--Saurabh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top