modal dialog to rest of application but want to interact with a second window simultaneously with that window
-
Sorry for the lengthy title. My problem is that I have a dialog in my application that I want to open in a modal fashion. But I want to be able to open another window from that modal dialog and interact between only these two windows, nothing else in the application (for doing some drag drop things between lists in these two windows). How can I do this? thankful for your suggestion, Bjorn
-
Sorry for the lengthy title. My problem is that I have a dialog in my application that I want to open in a modal fashion. But I want to be able to open another window from that modal dialog and interact between only these two windows, nothing else in the application (for doing some drag drop things between lists in these two windows). How can I do this? thankful for your suggestion, Bjorn
No going to happen like this. THe modal window is either going to be System Modal or Application Modal. Meaning that is System Modal, the user can't switch to any other window in the system until this window is closed. Application Modal means that you can't switch to any other form owned by the application that opened the modal window. You'll have to implement this using some other scheme other than using Modal forms. Off the top of my head, you could possibly host both of your forms that you want to display inside another, modal, form. This way, you can do anything you want between the two forms while they sit inside a parent form. I know, you think I smoking something illegal. But, the Form class inherits from Control, just any any other forms based control. The Form class also has a hidden property called
.TopLevel
. It won't show up in Intellisense, but it does work. You can read more about the technique here[^]. Warning! This article contains nothing but VB code! ;) RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome -
Sorry for the lengthy title. My problem is that I have a dialog in my application that I want to open in a modal fashion. But I want to be able to open another window from that modal dialog and interact between only these two windows, nothing else in the application (for doing some drag drop things between lists in these two windows). How can I do this? thankful for your suggestion, Bjorn
To do this would either require listening to the Window's message pump and syphonining off the message to your exception window or doing a special object that derives from
Form
that has this behavior. Neither or which are appealing at all and I highly recommend you do not go down this road. Instead you should rethink your UI design. Having a modal dialog for all except one dialog means you should consider doing something else with either if not both dialogs since they both seem to violate UI design expectations. -
Sorry for the lengthy title. My problem is that I have a dialog in my application that I want to open in a modal fashion. But I want to be able to open another window from that modal dialog and interact between only these two windows, nothing else in the application (for doing some drag drop things between lists in these two windows). How can I do this? thankful for your suggestion, Bjorn
-
Sorry for the lengthy title. My problem is that I have a dialog in my application that I want to open in a modal fashion. But I want to be able to open another window from that modal dialog and interact between only these two windows, nothing else in the application (for doing some drag drop things between lists in these two windows). How can I do this? thankful for your suggestion, Bjorn
what do you guys think about creating another standalone application which I start and hide at startup of my application, and then send a message to it telling it to display and go topmost when i open my modal dialog box? And then define some custom messages to handle the interaction? All I want to drag and drop is some simple text strings so should not be a problem between different applications... please give an opinion of you think its a stupid /hard to realize/other idea.