>You can do it in the same way as normal panel.
>Insted of 'Panel2' you must use '<splitContainerName>.Panel2' where <splitContainerName> is your component name >example 'splitContainer1'.
How do i get access to the splitcontainer from the usercontrol which was first assigned to the panel2
Usercontrol is assigned for the first time as
private void Form1_Load(object sender, EventArgs e)
{
us = new UserControl1();
us.Dock = DockStyle.Fill;
this.splitContainer1.Panel2.Controls.Add(us);
}
But inside the UserControl1 is there a reference to the splitcontainer form object
Cheers
John
|