how to load content of panel to a another panel??

What kind of panel?

can you please elaborate it....

System.Windows.Forms.Panel

i meant panel container

in actually i tried this way

On Error Resume Next
        For Each i As Button In Panel1.Controls
            Panel2.Controls.Add(i)
        Next
        For Each i As TextBox In Panel1.Controls
            Panel2.Controls.Add(i)
        Next
        For Each i As Label In Panel1.Controls
            Panel2.Controls.Add(i)
        Next

it works very well

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.