opening form from another form/ serial port

Hi all,

i'm new to visual basic and i have a problem...its probably really simple but i havent got a clue!

i basically have a main form with two buttons on it, and when either of these buttons are pressed i want another form to open. if anyone could tell me what the code is to do this i would be so grateful!

Also i need to use the SerialPort class to take the data that is typed into the boxes in my form and send it through the serial port to an external device.

Any help at all would be brilliant

thanx!



Answer this question

opening form from another form/ serial port

  • ValidDisplayName

    Can't help you with the forms, but in the knowledgebase on our homepage you will find a small program for serial port communication including full source code. The address is:
    Best regards
    Innovatic
    Carsten Kanstrup

  • Dan Danz

    It's quite easy the code thing. Double click on the button. On the code page a sub will be created that handles button click option. In that sub you will write

    Dim NewForm as Form1

    NewForm.Show()

    Form1 as the name of the other form you want to open. We are creating another an instance of that form and command it to show up



  • John Hind

    Thank you both so much for your help!


  • opening form from another form/ serial port