CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2002
    Posts
    22

    Talking Simple Question.

    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...

  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868
    private Sub Button1_Click(sender, event)
    dim f as new form2
    f.show()
    f.dispose()
    end sub

  3. #3
    Join Date
    Jul 2002
    Posts
    22

    Thanks

    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

  4. #4
    Join Date
    Jul 2002
    Posts
    22

    Done

    Done it already! Thanks

  5. #5
    Join Date
    Aug 2001
    Location
    New York, USA
    Posts
    169
    did you make BUTTON2 Public Shared?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured