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...
Printable View
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...
private Sub Button1_Click(sender, event)
dim f as new form2
f.show()
f.dispose()
end sub
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
Done it already! Thanks
did you make BUTTON2 Public Shared?