473,405 Members | 2,310 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,405 software developers and data experts.

Open new form in "modal" style...

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
14 23438
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
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
* "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
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
* "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
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
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
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
* "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
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
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
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
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
Hi Don,

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

;-)

Regards,
Fergus
Nov 20 '05 #15

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

Similar topics

2
by: Steph. | last post by:
How can I make a "ModalObject" that will react like a ModalForm ? I mean an object that will run in it's own message loop and return a value (a string value) when closed. Example : ...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
2
by: Stu | last post by:
I need to produce a series of C# aspx web forms that will collect insurance application information. The sequence of the pages needs to change dependent on choices that are made on the forms. ...
4
by: sam | last post by:
hi, How to set constant focus on window form in c#. cheers Sam
1
by: Ken Williams | last post by:
Assume I have two Forms Form1.cs and Form2.cs. When a button but1-switch is clicked on Form1.ca the second Form2.cs should be called and displayed. How do I call the second Form2.cs in modal...
3
by: Jimmy | last post by:
Is it possible to open a pop-up browser window (modal-style) inside another browser? e.g. // assuming something is calling this function inside the html as some event got triggered function...
3
by: frosted74 | last post by:
Hi, I have 2 javascript functions, one that sorts a table and one that shows/hides a modal dialog that displays something like "Sorting" with a little icon indicating that the browser is "busy"...
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...
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: 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
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
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,...
0
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...

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.