Hi all,
I have an application where I have these forms:
- main form/window of the appl
- a modeless form, with ShowInTaskBar=true
- a modal form launched from this modeless form.
When this modal form is launched from modeless,the whole application is
locked. This is fine.
As I have launched this modal from a modeless form that has ShowInTaskBar
set to true I get 2 windows listed on taskbar and I can switch to main
application window (though I can't do anything there).
If I set ShowInTaskBar=false for the modeless form I get just one window
(main appl window) on taskbar and switching to it takes me to the modal form.
But my requirement is such that I cant do away with ShowInTaskBar.
My problem is that I need some way out to force user back on the modal when
he tries to switch to the main window. Something similar to what Outlook (I
checked with Outlook 2003) does.
I can try getting it using some crude way, but I want to make sure I am not
missing some standard way out and use the best suitable apis.
Can someone help?
-Sandy
|