modal dialog

  • Thread starter Thread starter Nick Hoare
  • Start date Start date
N

Nick Hoare

Hi, what is the correct setting to make a dialog modal? i.e. you must enter
close it before operating on any other screens. Nothing seems to work for me
in Visual Studio, i try FixedDialog for example yet i can still click past
it.

Thanks,
Nick.
 
When you call the form, are you using form.Show or
form.ShowDialog? It shouldn't matter as long as you are
calling showDialog.

Cheers,

Bill

W.G. Ryan
(e-mail address removed)
www.knowdotnet.com
 
FixedDialog is Form's FormBorder property, it has nothing to do with showing
modal form. There are two methods to display a form: Form.Show() and
Form.ShowDialog(). It is obvious which one gives you a modal form.
 
Nick,

If you are using Forms, that you use the ShowDialog() method.

Dim frm As New MyCustomForm
frm.ShowDialog()

Please see the documentation for more details.

Gabriele
 
Back
Top