sathish kumar

sathish kumar

  • NA
  • 13
  • 9k

How to Add the Form in Panel from another Form

Feb 8 2014 1:52 AM
Hi All...
 
I am doing a simple project in c#, i want to display the form's in one panel, the forms added that panel from another form also.IN this Condition in VB.net then the code is very simple
 
Public Class Form2 
  Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click                  Form3.TopLevel = False
          Form3.TopMost = True
          Form1.Panel1.Controls.Add(Form3)
          Form3.Show()
 End Sub
End Class 


But in c# this is not a simple,I know how to add the controls in panel from the same form but i am new for this case, So please Help me, How to add the Form in Panel from another Form in C# Windows Application.

Answers (1)