Simple question abt pop-up window
C#
2
Posts
2
Posters
0
Views
1
Watching
-
how can I prevent window1.show() from showing same window multiple times. Are there any command like.. if (window1 exists) don't open window1 thanks Sudeep ====== code proj. rocks!
You can use a static field to keep track of the window state. When the window opens set the field to true. When the window closes set it to false. Check the field before trying to show another copy. Another way is to just to use ShowDialog() I don't know if that works for you.