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

Open new form in "modal" style...

P: n/a
Hello all:

Yesterday I put this post regarding the query as to how to open a new form
in "modal" style.

I am calling the form in the following way:

dim frm as form2()
frm = new form2()
frm.show

Where and how should I mention to open form in "modal" sytle.

Thanks!

SENDER (Remember me...)

Nov 20 '05 #1
Share this Question
Share on Google+
14 Replies


P: n/a
frm.showDialog
"I_AM_DON_AND_YOU?" <us**@domain.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
Hello all:

Yesterday I put this post regarding the query as to how to open a new form
in "modal" style.

I am calling the form in the following way:

dim frm as form2()
frm = new form2()
frm.show

Where and how should I mention to open form in "modal" sytle.

Thanks!

SENDER (Remember me...)

Nov 20 '05 #2

P: n/a
Hi Don,

frm.ShowDialog()

Note, if you have any buttons on your form and you set the dialog result
property, then those buttons will automatically close the form and return
the DialogResult property value in the ShowDialog method:

Dim drResult As DialogResult = frm.ShowDialog()

If drResult = DialogResult.OK Then
...
Else
...
End If

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
"I_AM_DON_AND_YOU?" <us**@domain.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
Hello all:

Yesterday I put this post regarding the query as to how to open a new form
in "modal" style.

I am calling the form in the following way:

dim frm as form2()
frm = new form2()
frm.show

Where and how should I mention to open form in "modal" sytle.

Thanks!

SENDER (Remember me...)

Nov 20 '05 #3

P: n/a
* "CJ Taylor" <no****@blowgoats.com> scripsit:
frm.showDialog


'showDialog'... we are not using Java...

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

P: n/a
but it works...

I used this:
frm.showdialog()

and it opened in "modal" form....
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...
* "CJ Taylor" <no****@blowgoats.com> scripsit:
frm.showDialog


'showDialog'... we are not using Java...

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #5

P: n/a
* "I_AM_DON_AND_YOU?" <us**@domain.com> scripsit:
but it works...

I used this:
frm.showdialog()

and it opened in "modal" form....


You are right, nevertheless the method's name is 'ShowDialog' and not 'showDialog'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #6

P: n/a
are you saying the difference is in the UPPER "S" and LOWER "s" ?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...
* "I_AM_DON_AND_YOU?" <us**@domain.com> scripsit:
but it works...

I used this:
frm.showdialog()

and it opened in "modal" form....
You are right, nevertheless the method's name is 'ShowDialog' and not

'showDialog'.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #7

P: n/a
No...

Just getting a rise out of me. =)

Thanks Herfried. =)

CJ

"I_AM_DON_AND_YOU?" <us**@domain.com> wrote in message
news:Oq**************@TK2MSFTNGP12.phx.gbl...
are you saying the difference is in the UPPER "S" and LOWER "s" ?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...
* "I_AM_DON_AND_YOU?" <us**@domain.com> scripsit:
but it works...

I used this:
frm.showdialog()

and it opened in "modal" form....


You are right, nevertheless the method's name is 'ShowDialog' and not

'showDialog'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


Nov 20 '05 #8

P: n/a
Cor

reference by value
You are right, nevertheless the method's name is 'ShowDialog' and not 'showDialog'.

Are YOU saying there is a difference between uper and lower case.

Brutus
:-)
Cor
Nov 20 '05 #9

P: n/a
* "Cor" <no*@non.com> scripsit:
You are right, nevertheless the method's name is 'ShowDialog' and not
'showDialog'.

Are YOU saying there is a difference between uper and lower case.

Brutus
:-)


ROFL

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #10

P: n/a
Hi Sender,

Rather than call the Show method, you can call the ShowDialog
function. If I remember correctly, that will be modal within the
application, but it will not grab focus from another application.

HTH.

--
Steph Zielenski
Nov 20 '05 #11

P: n/a
What is ROFL ?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...
* "Cor" <no*@non.com> scripsit:
You are right, nevertheless the method's name is 'ShowDialog' and not
'showDialog'.

Are YOU saying there is a difference between uper and lower case.

Brutus
:-)


ROFL

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #12

P: n/a
Hehe

Rolling On Floor Laughing...

us nerds...
=)
"I_AM_DON_AND_YOU?" <us**@domain.com> wrote in message
news:OA*************@TK2MSFTNGP12.phx.gbl...
What is ROFL ?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...
* "Cor" <no*@non.com> scripsit:
> You are right, nevertheless the method's name is 'ShowDialog' and not > 'showDialog'.
>
Are YOU saying there is a difference between uper and lower case.

Brutus
:-)


ROFL

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


Nov 20 '05 #13

P: n/a
Hi Cor,
Yes there is when it comes to camel casing.

In my infinite wisdom, I hereby BAN all camel casing from appearing in any
of my posts, it will now appear as asterisks. I'm sure you'll agree
Herfried.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
"Cor" <no*@non.com> wrote in message
news:3f***********************@reader20.wxs.nl...

reference by value
You are right, nevertheless the method's name is 'ShowDialog' and not

'**********'.

Are YOU saying there is a difference between uper and lower case.

Brutus
:-)
Cor

Nov 20 '05 #14

P: n/a
Hi Don,

Great name - You're not going to miss that in a search!!

;-)

Regards,
Fergus
Nov 20 '05 #15

This discussion thread is closed

Replies have been disabled for this discussion.