By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 927 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

Calling form2 from form1 with a button !

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.