By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

prevent form leave in form_leave event

P: 1
How to prevent the user to leave a current form until he does something in current form or atleast close the form in windows form
Mar 16 '13 #1
Share this Question
Share on Google+
1 Reply


IronRazer
P: 83
If it is not the main form but a second form that gets shown then you could show the form as a dialog form. Just Change (Form2) in this code to the name of your form.
Expand|Select|Wrap|Line Numbers
  1.         Form2.ShowDialog()
  2.  
Mar 16 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.