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

modal dialog

P: n/a
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.
Jul 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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 Hoare" <ho*********@hotmail.com> wrote in message
news:dw*******************@news-server.bigpond.net.au...
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.

Jul 19 '05 #2

P: n/a
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

"Nick Hoare" <ho*********@hotmail.com> wrote in message
news:dw*******************@news-server.bigpond.net.au...
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.

Jul 19 '05 #3

P: n/a
Beautiful!

Thanks all,

until next time....

Cheers!
Nick.
"Eric Cadwell" <ec******@no.insight.spam.com> wrote in message
news:#h**************@TK2MSFTNGP10.phx.gbl...
The difference is in the Show method.
To show a dialog modally use ShowDialog()

HTH,
Eric Cadwell
http://www.origincontrols.com

"Nick Hoare" <ho*********@hotmail.com> wrote in message
news:dw*******************@news-server.bigpond.net.au...
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.


Jul 19 '05 #4

P: n/a
Try window.showModalDialog - thats for Javascript...

Cheers
Andrew
"Nick Hoare" <ho*********@hotmail.com> wrote in message
news:dw*******************@news-server.bigpond.net.au...
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.

Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.