How to set modeless form to stay modeless?
-
Hi, I have 2 forms. One is the main form and another is just a normal form. In the main form, I have two buttons. One is to open modeless form and another is to open modal form (using ShowDialog()). When I clicked the first button, it will show modeless form. However, if I clicked the second button and the modal form is open, the first modeless form can't be access anymore (until the modal form is closed). Any idea how to allow this modeless form to be accessible? Thanks for any help :)
-
Hi, I have 2 forms. One is the main form and another is just a normal form. In the main form, I have two buttons. One is to open modeless form and another is to open modal form (using ShowDialog()). When I clicked the first button, it will show modeless form. However, if I clicked the second button and the modal form is open, the first modeless form can't be access anymore (until the modal form is closed). Any idea how to allow this modeless form to be accessible? Thanks for any help :)
Hey That's why they made Modals!!! but if you used your second form as a modalDialog for preventing access to the mainForm. the simplest way to get rid of it (if you don't care your controls going to be Grey) is to use Show instead of show dialog and pass the mainform instance to form (previously was shown as modal) and disable the mainForm then after hiding the dialog enable it again. or http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2192114&SiteID=1[^] Hope its going to help!
-
Hey That's why they made Modals!!! but if you used your second form as a modalDialog for preventing access to the mainForm. the simplest way to get rid of it (if you don't care your controls going to be Grey) is to use Show instead of show dialog and pass the mainform instance to form (previously was shown as modal) and disable the mainForm then after hiding the dialog enable it again. or http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2192114&SiteID=1[^] Hope its going to help!