473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

modal dialog

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
4 4158
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patrick Lim | last post by:
Here is the problem: I have written a non-modal frame class in Java for displaying help text when a user is using an application. It works as desired in that if the user selects "help" again,...
2
by: martin de vroom | last post by:
Hi, I have a web page that opens a modal dialog (client side) in the following manner onclick="window.showModalDialog('/dialog.asp',null,'dialogHeight: 200px; dialogWidth: 400px; dialogTop:...
2
by: Gilles T. | last post by:
Hi, How I can refresh a modal dialog in asp.net? I open a modal dialog in first with a dropdownlist. To add a element in my dropdownlist (table), I open a second modal dialog to ask element and...
2
by: cassidyc | last post by:
Hi, I was wondering if anyone has come accross this issue? And if they have any solutions I have that can create new copies of itself Form1 as = new form1(); af.show(); This form can also...
3
by: Earl Teigrob | last post by:
Can a Modal Dialog Box do forms ASP.NET forms validation from within the Modal Box? I want to pop up a dialog box to the user and have it do its own post backs with validation checking and then...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
2
by: sthrudel | last post by:
Hi! I'm working on a web application in Asp.net and what I would like to have is a cross borwser modal dialog which accepts user's input. I would like to catch what the user clicked on the...
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
2
by: diogenes | last post by:
I have created many shortcut/popup (aka context, or right-click) menus for my application - instead of toolbars or standard drop-down menus. Within my custom menu, I am using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.