Click to See Complete Forum and Search --> : Simple Question.


alexandar
July 31st, 2002, 10:16 PM
HI! This may sound like a silly question but I am new to Vb.Net. I can't seem to link 2 forms together. Eg.....in Form1 I have a Button1. When I click on Button1, I need it to call Button2. How do I do that?
Thanks...

DSJ
August 5th, 2002, 04:38 PM
private Sub Button1_Click(sender, event)
dim f as new form2
f.show()
f.dispose()
end sub

alexandar
August 6th, 2002, 01:22 AM
Thank you for helping me out. Really appreciate it.
About the codes, I've tried them already.....I am still facing one problem. I've design some textboxes and buttons on the second form. When i run the programme from Form 1 to Form 2, it works...BUT nothing comes out on Form2..meaning that the buttons and textboxes I designed earlier was not there. Is there anything wrong with the programme? Or did I code it wrongly?
Thanks

alexandar
August 7th, 2002, 07:10 PM
Done it already! Thanks

enigmaos
August 8th, 2002, 07:04 PM
did you make BUTTON2 Public Shared?