Help with VB 2005 express

ok when i am in the vb designing mode i make a form1.vb i edit it how i like the i want to make another one that opens when i click a button

for ex.

i have a ordering form for my business and i want them to be able to click a button that says Visit Our Website then opens the second form that i created please help

Sincerly, Logan Eric Looker




Answer this question

Help with VB 2005 express

  • skipsizemore

    I THINK must Create a new Instanz of your Baseclass from Form

    inn VB must do like anything like that:

    'instance it

    dim Form 2 as new system.windows. form.form

    'declare it

    Form2 = system.windows.forms.form

     

    and last but not least...

    Form2.visible must set on true

     

    I think u must do anything like that.
    If was false what i wrote, please excuse me, i m beginner in VB.net



  • vinod singh

    Drag a Button1 on Form1..... Drop Project Menu..... Add a Windows Form2.... Double Click on Button1.... Add Orange Code... Press F5....

    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Form2.Show()

    End Sub

    End Class


  • Help with VB 2005 express