can anyone help me to figure out how to nest forms on visual basic??
example:
i would like to link form1 to form2?

Recommended Answers

All 3 Replies

i don't really understand the question. can u give an example?

can anyone help me to figure out how to nest forms on visual basic??
example:
i would like to link form1 to form2?

Something like this?
Pre-requisites: 2 Forms, each containing a Label.

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Form2.Label1.Text = "text from Form1"
        Form2.Show()
    End Sub
End Class
Public Class Form2

    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Form1.Label1.Text = Form1.Text
    End Sub
End Class

can anyone help me to figure out how to nest forms on visual basic??
example:
i would like to link form1 to form2?

You could use the inherits Method

Try this
Public Class Form2
Inherits Namespace1.Form1

Good Luck!

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.