473,385 Members | 1,642 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.

Calling form2 from form1 with a button !

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 !!!
Nov 21 '05 #1
4 2516
Hi Marcel,

I also started with DOS. Do you miss using EDLIN? :-)

To answer the question, it is very simple (when you know how! :-).....

Within the code page for form1 you need to declare the and instantiate
form2. You then call then show method.

Dim frm2 as New Form2

Sub Button1_Click (ByVal sender as object, e as eventargs) handles
button1.click

frm2.show

End Sub

HTH, Phil

"Marcel" <Ma****@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
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 !!!

Nov 21 '05 #2
Hi Phil,

My god, EDLIN, I was forgotting about this program ! I start in 1983 with
the first version of Basic Compiler. I wrote an income tax software that has
been on the market (in Quebec, Canada) for... 21 years ! I gave up last year
(under Basic Compiler 7.1).

Thank you, I am going to try your solution.

Marcel

Nov 21 '05 #3
hi sir... just wana ask ....how can i do mapping from DOS OS to a
WINDOWSXP OS?
is it possible?
by using normal mapping code that i did in vb.net?
sorry for asking tis but since u r used to DOS thg.. i thought u may
help a bit in this problem.. thank you...
currently my programme is doing the mapping between two pc which is
under the WINDOWS XP environment...
but now..
i would like to map between two machine.. one is in windows XP OS with
DOS os so that i would be able to copy some text file from the DOS OS to
my windows..... is it possible to do that ?
any refference for me to learn it?
thanks...
may directly contact me at
ja********@gmail.com
viper ®

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 21 '05 #4
hi sir... just wana ask ....how can i do mapping from DOS OS to a
WINDOWSXP OS?
is it possible?
by using normal mapping code that i did in vb.net?
sorry for asking tis but since u r used to DOS thg.. i thought u may
help a bit in this problem.. thank you...
currently my programme is doing the mapping between two pc which is
under the WINDOWS XP environment...
but now..
i would like to map between two machine.. one is in windows XP OS with
DOS os so that i would be able to copy some text file from the DOS OS to
my windows..... is it possible to do that ?
any refference for me to learn it?
thanks...
may directly contact me at
ja********@gmail.com
viper ®

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 21 '05 #5

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: Andy | last post by:
I have a form (formA). This form used to following code on FormA to load a new form(FormB). formB f = new formB(); f.ShowDialog(); However: on formB, I am unable to access any object...
5
by: John | last post by:
Hi, I can't find a simple example for a simple(?) problem. I am working on an application with a variable in form1, that variable is needed in form2 for a calculation but i can't get that...
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...
6
by: ahmad.humyn | last post by:
I want to call a hidden form. My code goes something like in which the main calls form1. form1 has a button which creates & calls form2 and hides itself. Now I have a button in form2 which if...
20
by: vitorjol | last post by:
Hello. I have 2 forms (Form1 and Form2). When i call the Sub placed in form1 from form2, i get the error "object reference not set to an instance of an object" ! What can i do to solve the...
0
by: rachit.goyal | last post by:
Hi All, I am creating one windows form application using VC++.net. I have Form1 which contains some text boxes and button. I have one another Form2 which contains only one progress bar. After...
3
by: =?Utf-8?B?UmljaCBIdXRjaGlucw==?= | last post by:
I have a form, Form1, that shows an instance of Form2 when a user clicks a button. On Form2, the user is to select items, Customer Names for example, from a datagrid control. When the user clicks a...
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
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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.