How come when I use ".Show vbModal", it doesn't show that form in the taskbar? When I minimize that window, both windows minimize which is what I want but I can't restore that window by clicking on the taskbar because it's not there.
Printable View
How come when I use ".Show vbModal", it doesn't show that form in the taskbar? When I minimize that window, both windows minimize which is what I want but I can't restore that window by clicking on the taskbar because it's not there.
Set 2nd Form's .ShowInTaskbar property to True.
Point of modal windows is bring user's attention to something very important.
Execution stops until form is released (or closed if you will) so ... what else do you need ???????
You can minimize modal window but icon appears right above taskbar (if it is at the bottom) but rest of your application will not be accessible until you close modal form...
That shouldn't matter for modal forms.Quote:
Originally Posted by gavio
You're probobally right.Quote:
Originally Posted by RhinoBull
Also, you can try to .Show it normaly, but when loaded disable the parent form and vice-versa when unloaded.
Modal forms are like dialog windows. They will not show in the taskbar no matter the ShowInTaskbar property setting. Because they are modal you would not have them open and switching forms in your app so no need to show the form in the taskbar. ;)
I just want the main form to minmize, also when the opened form is minmized. I also want to be able to see it in the taskbar. Basically, all I really want is just to do something exactly like ".Show vbModal", except I can see the form in the taskbar.
That realy is pointless and unreasonable, in my opinion - it "breaks" the purpose of modal form.
But how would I do it?
If a modal form is minimized it will automatically minimize its parent form. To minimize a parent form while showing a modal form can not be done. You could do a Form1.Hide and then Form2.Show vbModal but then Form1 wont be shown in the taskbar.
MInimizing modal can create nothing but frustration to the end user - I can asure you of that. People can see forms but cannot use them and they can't find that modal screen (dialog or message box if you will because that's what modal really is) so eventually they get annoyed with all of the above and at some point they will no longer use your software. I've seen it happened.
So, having said that I would recommend to drop this idea...
I don't want to flare up the debate, but I too am interested in having a form opened using vbModal show it's icon. (My modal form is a custom webbrowser, so it's not a small window or a dialogue box.)
Mine does but not immedietly.
Initially, when my application opens the modal form, there is no new icon showing in the taskbar. But if I click somewhere on my desktop (away from my application's 2 windows) or on another application's window and then click back on my modal form, the icon for the modal form shows up.
How can I make it show without the delay?
Cheers,
Nap
Put this code into the second Form (the one that should be modal):Then show it normally - Form2.Show.Code:Private Sub Form_Load()
Form1.Enabled = False
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Form1.Enabled = True
End Sub