473,513 Members | 8,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Modal/Modless form

With VB.NET, how do I define a form to be Modal?

Thank you..

Bruce
Nov 21 '05 #1
8 6311
MyForm.Show()
or
MyForm.ShowDialog()

Regards,

"Bruce A. Julseth" <br***********@attglobal.net> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
With VB.NET, how do I define a form to be Modal?

Thank you..

Bruce

Nov 21 '05 #2
"Bruce A. Julseth" <br***********@attglobal.net> schrieb:
With VB.NET, how do I define a form to be Modal?


\\\
Dim f As New FooForm()
f.ShowDialog()
f.Dispose()
///

Notice that forms shown using 'ShowDialog' should be disposed when they are
not needed any more.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uI**************@tk2msftngp13.phx.gbl...
"Bruce A. Julseth" <br***********@attglobal.net> schrieb:
With VB.NET, how do I define a form to be Modal?
\\\
Dim f As New FooForm()
f.ShowDialog()
f.Dispose()
///

Notice that forms shown using 'ShowDialog' should be disposed when they

are not needed any more.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

When answering a dotnet question directly, it would be wise to also direct
them to the dotnet newsgroups. Save them time/trouble with their next
questions.

Galen
Nov 21 '05 #4
"Galen Somerville" <ga***@surewest.net> schrieb:
When answering a dotnet question directly, it would be wise to also direct
them to the dotnet newsgroups. Save them time/trouble with their next
questions.


Sorry, I totally missed that this question was directed to a VB classic
group too :-(

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5
Thanks to all for the help....

Bruce
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OL**************@TK2MSFTNGP15.phx.gbl...
"Galen Somerville" <ga***@surewest.net> schrieb:
When answering a dotnet question directly, it would be wise to also direct them to the dotnet newsgroups. Save them time/trouble with their next
questions.


Sorry, I totally missed that this question was directed to a VB classic
group too :-(

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #6
>When answering a dotnet question directly, it would be wise to also direct
them to the dotnet newsgroups. Save them time/trouble with their next
questions.


Why, that sees the OP from where he gets the answers.

And when you don't want those question in the newsgroup where you are
active, than ask Microsoft to change the name of that newsgroup to make it
more clear to newbies or tell it yourself.

It would be crazy when there is a crosspost between the newsgroups that
somebody active in one tells that his newsgroup is "better".

Just my opinion.

Cor
Nov 21 '05 #7
"Cor Ligthert" <no************@planet.nl>'s wild thoughts
were released on Fri, 21 Jan 2005 08:47:06 +0100 bearing the
following fruit:
When answering a dotnet question directly, it would be wise to also direct
them to the dotnet newsgroups. Save them time/trouble with their next
questions.
Why, that sees the OP from where he gets the answers.

And when you don't want those question in the newsgroup where you are
active, than ask Microsoft to change the name of that newsgroup to make it
more clear to newbies or tell it yourself.


It is expected that people at least read posts in a group
before they post in which case they would soon determine
that this is a VB 'classic' group, unless of course it was
filled with dotnet questions in which case I would
understand the confusion.
It would be crazy when there is a crosspost between the newsgroups that
somebody active in one tells that his newsgroup is "better".

Just my opinion.


The other group IS better. If you want want advice on how to
fix a car and you post to a PC group, there MIGHT be someone
who can help you but it's far better to point you to a car
group where EVERYONE can help you.

Jan Hyde (VB MVP)

--
Fireplace: An office used for discharging people. (Helen Hoke)

[Abolish the TV Licence - http://www.tvlicensing.biz/]

Nov 21 '05 #8
On Fri, 21 Jan 2005 08:47:06 +0100, "Cor Ligthert"
<no************@planet.nl> wrote:
When answering a dotnet question directly, it would be wise to also direct
them to the dotnet newsgroups. Save them time/trouble with their next
questions.
Why, that sees the OP from where he gets the answers.

And when you don't want those question in the newsgroup where you are
active, than ask Microsoft to change the name of that newsgroup to make it
more clear to newbies or tell it yourself.
You must be joking - the name of a NG is set in stone
It would be crazy when there is a crosspost between the newsgroups that
somebody active in one tells that his newsgroup is "better".
It is crazy /not/ to send people to the right NG to get their
questions viewed by a lot of people who know about their subject
- rather than just one or two people who are browsing this NG
Just my opinion.


You are in a minority
If this NG becomes full of VB.NET posters then it will be a Tower of
Babel
Nov 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8000
by: Dennis C. Drumm | last post by:
I have a window form dialog that I use in a non modal fashion. It is displayed using Show() in stead of ShowDialog() from the parent windows form application. I have TextBoxes in that dialog that...
1
2804
by: VM | last post by:
Is it possible to display a form as a modal dialog box where it's is not a top-level form? If I include it as a top-level form, I won't be able to access all the MDI children through it (by using...
1
1243
by: Fabrizio | last post by:
Hi, I would like to start my webapplication in a window browser without address bur, toolbar etc... like a window modal . Can I? how? Thank you fabrizio
5
1013
by: KenR | last post by:
I'm trying to create a modeless form with one textbox on it and one progress meter. Nothing else. I am not passing it any parameters. It will be called from a module which is the startup...
0
2324
by: Ben | last post by:
Please excuse if this ends up being a double post at some point. I tried posting using another website which crashed, so I am not sure if it will ever get posted. As such I decided to try again...
1
17108
by: Fred | last post by:
I have the following code in a button on my modal popup form After the user enters the information, they click on a button. I want the form to close after processing the information. At the...
3
3044
by: Ant | last post by:
Hi, I'm using a modal dialog box to input data. I have created properties on the dialog form to capture the data so that it might be read from the main form via the dialog form. This approach...
1
49852
by: mikeh3275 | last post by:
I'm new to developing in jQuery, so I'm probably doing this wrong. I'm loading a form into a modal dialog box and I'm trying to assign a click event to the button in the form, but I can't seem to...
3
6603
by: elmbrook | last post by:
I am unable to open a child form as a modal form. Here is my scenario I have a MainForm which is a toplevel form. Inside the MainForm I have a Toolbar Form which is a child. From the Toolbar...
0
7254
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,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5677
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.