Hi, I'm having a tiny problem. I have just started playing around with visual basic a week ago so im fairly new at this. I created a method that saves changes when you click a button, once the button is clicked a message box pops up with a yes/no option. whenever i click any of those buttons the entire window minimizes. Theres no problem with the code it self yet, i just want my window to stop minimizing
here is the code:
the source of this code is in form2 which i pull up with form1(which both minimizes).
any help would be greatly appreciated.tha nks ^_^
here is the code:
Code:
Dim SaveChangesResponse As DialogResult
SaveChangesResponse = MessageBox.Show("Are you sure you want to save changes? " & _
"Changes done here are permanant.", _
"Save Changes?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, _
MessageBoxDefaultButton.Button2, _
MessageBoxOptions.DefaultDesktopOnly, False)
If SaveChangesResponse = Windows.Forms.DialogResult.Yes Then
'this is when the window starts minimizing
any help would be greatly appreciated.tha nks ^_^
Comment