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

form2.show 1

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.

how is it done in vb.net ??

i hope you understood my question.

Thanx
..
Nov 20 '05 #1
3 7568
Hi,

Try this.

Dim frm as new Form2

frm.ShowDialog

Ken
----------------------------
"Will" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
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.

how is it done in vb.net ??

i hope you understood my question.

Thanx
.

Nov 20 '05 #2
* "Will" <an*******@discussions.microsoft.com> scripsit:
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
I used to write 'vbModal' in VB6 because it was more descriptive (and
easier to understand for the upgrade wizard).
and placing the '1' after the show, will lock the screen
on form2.


\\\
Dim f As New Form2()
f.ShowDialog()
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
"Will" <an*******@discussions.microsoft.com> schrieb
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 mean a "modal" Form.
you use

form2.show 1
I don't know 1, I only know vbModal...
and placing the '1' after the show, will lock the screen
on form2.

how is it done in vb.net ??

i hope you understood my question.


Yes. :-)

Use
form2.showdialog

I assume form2 is a variable name, it's type is Form2 and you assigned a
Form instance:

dim form2 as form2

form2 = new form2
form2.showdialog

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4

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

Similar topics

5
by: nadir b | last post by:
hi I don't know how to change for exemple a form1 caption text from form2 don't forget that form2 has created from form1 I want sample code with c# *** Sent via Developersdex...
2
by: Supra | last post by:
how do i create form2 in class1.vb also i needed to make form2 mdichild? in form2 i had listveiw1...that all this code below will overwrite in one row in class1.vb \\\ \\\ Case "322" 'Lists...
4
by: Marcel | last post by:
Hi, I am very new about VB.NET. I was an old DOS programmer... I would like to have a button to switch from form1 to form2 !!!
2
by: mark | last post by:
I put this question on a new thread because, in spirit, it is a new question. I apologize that I have difficulty formulating the proper question. My application performs matrix computations on...
3
by: Mateusz Rajca | last post by:
Hello, I have Form1 - the main form with some controls including a button. I have Form2 - the properties form with a combobox and button. The user can select the colors of a button in the...
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....
3
by: R. Harris | last post by:
Hi. I have 2 forms: form1 form2 On Form2 I have a listbox and a button. When I click the button it calls a function from form1 and within that function it updates the listbox on form2. My...
7
by: Boki | last post by:
Hi All, I want to change WindowState of form1 from form2. I tried these two methods, but no luck on both. (1) Declare a public method: /* function of form1 */ public void...
5
by: lukasmazur | last post by:
Hi I have a problem with using listBox1. I have a two forms form1 and form2. In form1 are controls listBox1, textBox1 and button witch creating object of class Form2. In class Form2 I create a...
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
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: 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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.