Hi.
I am working on vb.net and i want ot link a form with a button so when i click on button the form show but it contain error kindly guide
code is this:
Dim myform As New Form1
myform.Show()
and the compiler show error on myform.show()

OK, you have an error and it seems in a way related to a form.
Could you please also specify WHAT error?
If I told you I have a car, would you know what car I have?

Why would you want to load form1 again? Anyway it works for me without an error.
Try:

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
        Dim myform As New Form
        myform.Show()
    End Sub

thanks it works

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.