Dialog Form Suddenly Closes?

jsurpless

Well-known member
Joined
Jul 29, 2008
Messages
144
Programming Experience
Beginner
Hi all

Hoping someone can offer some insight on what I've done here... I'm opening a form using the following syntax...

VB.NET:
FormName.ShowDialog()

All of a sudden (clearly, I did something), when I exit out of a FolderBrowserDialog OR a OpenFileDialog, the dialog form closes... I know this happens because I return to the above calling code as I step through the form's code...

I've got another form that's called the same way and this doesn't happen... thinking I screwed up a parameter somewhere, I tried creating a brand-new form... no such luck...

Any thoughts?

Many thanks!
 
Just figured it out... the 'DialogResult' of the button in question was set to 'Cancel'... I believe that this happened as I was changing the 'Cancel_Button' property of the form...
 
Back
Top