473,383 Members | 1,822 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,383 software developers and data experts.

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 1305
You should first try to not multi-post.
"Sender" <us**@domain.com> wrote in message news:%2***************@TK2MSFTNGP11.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.public.dotnet.languages.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.computetosuit.com> wrote in message
news:Ou**************@tk2msftngp13.phx.gbl...
You should first try to not multi-post.
"Sender" <us**@domain.com> wrote in message

news:%2***************@TK2MSFTNGP11.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.DefInstance.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.DefInstance.ShowDialog()" should work

Nov 20 '05 #4
"E.P." <Me@nowhere.com> scripsit:
I believe "form2.DefInstance.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
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...
14
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()...
3
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...
5
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...
6
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...
3
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....
4
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...
1
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...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.