Iam creating an application.
i have a main form
it has 5 buttons
i have created 5 more forms.
my aim is to show a particular form for every button
the form is opened in a new window

i dont want to open in a new window
it should be embed in the main form
when i click anthor button it will show the related form in place of previous form

plzzzzzzzz give me the solution
Thanks in advance

For this u can take 5 panels..Suppose u drag one panel on a form..Copy this panel & paste it 4 times...One above the other..To move b/w the panels...U can right click mouse on panel & click Send to Back...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Call makePanelVisible(True, False)
    End Sub

   

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Call makePanelVisible(False, True)
    End Sub

    Private Sub makePanelVisible(ByVal bPanel1 As Boolean, ByVal bpanel2 As Boolean)
        Panel1.Visible = bPanel1
        Panel2.Visible = bpanel2
    End Sub
This question has already been answered. Start a new discussion instead.