473,661 Members | 2,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

open form2 in modal form

hello everyone

i want to open form2 in modal form. how should i do that ?

thanks in advance!
Nov 20 '05 #1
4 1319
You should first try to not multi-post.
"Sender" <us**@domain.co m> wrote in message news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
hello everyone

i want to open form2 in modal form. how should i do that ?

thanks in advance!

Nov 20 '05 #2
Hi Rick

First of all let me thank for you reply in
microsoft.publi c.dotnet.langua ges.vb. I put that post here in this forum and
in that forum also because I wanted to do that both in VB 6.0 and VB.Net.
You gave the reply for VB6.0.

DO YOU STILL THINK IT IS MULTI-POST......if yes then who cares.....
"Rick Mogstad" <ri**@NOSPAM.co mputetosuit.com > wrote in message
news:Ou******** ******@tk2msftn gp13.phx.gbl...
You should first try to not multi-post.
"Sender" <us**@domain.co m> wrote in message

news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
hello everyone

i want to open form2 in modal form. how should i do that ?

thanks in advance!


Nov 20 '05 #3
I am calling form2 as:

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

Where do I write: >>>>>>>>>> form2.DefInstan ce.ShowDialog() , because there
is no definstance method associated with frm.

Thanks.

"E.P." <Me@nowhere.com > wrote in message
news:01******** *************** *****@phx.gbl.. .
-----Original Message-----
hello everyone

i want to open form2 in modal form. how should i do that ?

thanks in advance!
.


I believe "form2.DefInsta nce.ShowDialog( )" should work

Nov 20 '05 #4
"E.P." <Me@nowhere.com > scripsit:
I believe "form2.DefInsta nce.ShowDialog( )" should work


?!?

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

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

Similar topics

5
8188
by: aaaa | last post by:
I there, I have the folowing problem: In Form1 i have a button that open a new form (Form2). If a clik several times in that button, i open several form's of Form2. I don't want this!!! if a form2 is open it can not create a open a new form. How can a do this?? PS: the showdialog() method can not be used.
14
23474
by: I_AM_DON_AND_YOU? | last post by:
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
3
7592
by: Will | last post by:
Hey friends, in vb 6.0, if you wanted to display a form on top of another and, in a way lock the screen on the form, you use form2.show 1 and placing the '1' after the show, will lock the screen on form2.
5
2459
by: twick10 | last post by:
Hi, I am trying to execute a control method on an open form (not with focus) from a modal dialog box. I want to increment the node selected from the dialog when a certain key is pressed. Any help appreciated. Robert T
6
1613
by: pamelafluente | last post by:
Hi guys I am puzzed (???) with a probably stupid problem (VB2003). I must be doing something dumb ... I want to open a owned form (must *not* be mdi child) over an Mdi Container, when the Mdi container starts. I have a small demo program made of: Form1, Form2 (empty) and a "StartProgram" class which contain the following code. The startup object is set to be: Sub Main
3
5930
by: Karan | last post by:
I am calling finalize when form2 loads and deactivates form1 which closes form1. However, same thing is not happening in form2 because finalize is already called. Does anybody has solution to it. This code works well for splash screen. I searched alot on net for codes but they don't work. for example- (1) Public Sub CloseForm(formType As System.Type) For Each oForm as System.Windows.Forms.Form in me.MdiParent.MdiChildren If...
4
2908
by: rdemyan | last post by:
I'm using code from the following web page to open the API Browse Folder dialog http://www.mvps.org/access/api/api0002.htm It all works fine. But if the dialog box is open and the user closes Access, the system just hangs and Access apparantly cannot close. I have to open the Windows Task Manager and force the closing (and even that takes quite awhile).
1
5834
by: VMI | last post by:
I have a Windows Form Form1 (not MDI) and when I double-click on the Form, another Form2 will "pop up". How can I pass the text that I typed in Form2 to a textbox in Form1? I was thinking if it was possible that from Form2 I can call a public method in Form1 that updates the Textbox. I wanted to use something similar to the following code: Form childForm = this.MdiParent.MdiChildren ; Form f=null; f=(Form)childForm; frm_interactive...
1
2306
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
0
8432
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...
0
8758
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
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,...
1
6185
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4346
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
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
1986
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1743
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.