Hi, I need to close a messagebox without closing the application.
Here is my code:
If I click yes, the app quits, but this is also the unexpected result of clicking no.Code:MessageBox.Show("You may have unsaved work. Are you sure you want to quit?", "Alert", MessageBoxButtons.YesNo, MessageBoxIcon.Question) If vbYes Then Application.Exit() Else DialogResult = Windows.Forms.DialogResult.No End If
If anyone can help me, it is greatly appreciated!
Louix.





Reply With Quote