Form Closing check
C#
3
Posts
2
Posters
0
Views
1
Watching
-
Hello, My app has 2 methods closing a form. By menu "Exit" and the "X" on the upper right. How can I check, if the "X" Button was clicked and not the menu item "Exit" ?
-
May be dull but easy , Put a flag for your menuItem which will be set to one by menuItemClick event and directing the call into two methods by checking the flag. Have a nice day