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

Take a look at this.

That explains it better than I can.

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

thank u sonia

my problem is resolved

thank u very much

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.