Prevent user from opening >1 subform
-
Hi! I have a form with a ListView. When the user dbl clicks a row in the listview, a new window with data regarding this row pops up. I want to prevent the user from being able to open more than one window like this at a time. A nice solution would be to replace the already opened window should the user try and open a second. How would I go about doing this? I'm kind of new working with winforms... /regards
-
Hi! I have a form with a ListView. When the user dbl clicks a row in the listview, a new window with data regarding this row pops up. I want to prevent the user from being able to open more than one window like this at a time. A nice solution would be to replace the already opened window should the user try and open a second. How would I go about doing this? I'm kind of new working with winforms... /regards
Hi Friend, Instead of using Form.show() method use Form.showDialouge() method, It will show your form as a dialouge box and without any action on it no one can open other form. This may solve ur problem. Enjoy:-D Naveed Kamboh -- modified at 7:36 Monday 24th April, 2006
-
Hi Friend, Instead of using Form.show() method use Form.showDialouge() method, It will show your form as a dialouge box and without any action on it no one can open other form. This may solve ur problem. Enjoy:-D Naveed Kamboh -- modified at 7:36 Monday 24th April, 2006
-
Hi! I have a form with a ListView. When the user dbl clicks a row in the listview, a new window with data regarding this row pops up. I want to prevent the user from being able to open more than one window like this at a time. A nice solution would be to replace the already opened window should the user try and open a second. How would I go about doing this? I'm kind of new working with winforms... /regards
one option can be to make the new window a modal dialog...but in that case you'll be able to access the listbox only when the new dialog is closed... if you don't want that you can disable the listbox before the new window opens (after the user selects to open the window)...and then you can enable it again when the user closes the window... there should be some more ways to do it...