473,898 Members | 4,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 23503
frm.showDialog
"I_AM_DON_AND_Y OU?" <us**@domain.co m> wrote in message
news:eR******** ******@tk2msftn gp13.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.Reflecti on Master "

==== Converting to 2002 ====
Remove inline declarations
"I_AM_DON_AND_Y OU?" <us**@domain.co m> wrote in message
news:eR******** ******@tk2msftn gp13.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****@blowgoa ts.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****@blowgoa ts.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_Y OU?" <us**@domain.co m> 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_Y OU?" <us**@domain.co m> 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_Y OU?" <us**@domain.co m> wrote in message
news:Oq******** ******@TK2MSFTN GP12.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_Y OU?" <us**@domain.co m> 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

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

Similar topics

2
1680
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 : private void SomeFunction()
2
8415
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 submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the client side javacript code for form validation and client side editing capabilities in order to save...
2
1684
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. I forsee it looking like a wizard style screen with back and forward buttons and a series of questions. Could anyone give me any links to tutorials or information that could help
4
14979
by: sam | last post by:
hi, How to set constant focus on window form in c#. cheers Sam
1
2311
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 style ? How would the same call look like if I call the second Form in non-modal style ? Ken
3
6472
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 doSomethingInDiffWindow() { // do something // open up a pop-up modal window // continue back on doing something after pop-up modal window
3
3051
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" and you need to wait. This is done because on larger tables the sort routine can take upwards of 10 seconds. I try the following code: <th onclick="showModal(); sort(this); hideModal();">some header</th>
11
2394
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 realized that despite suggestions to use DHTML-based modal dialogs are very common? there is not a single fully functional reliable copyright-free cross-browser alternative to say MsgBox (VBScript) or showModalDialog (IE). This way such suggestions up to...
0
9993
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10954
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10487
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9662
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7191
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4708
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4297
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3308
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.