1
Answer

how do I display a usercontrol on a panel

christian smith

christian smith

13y
9.4k
1

I have a homepage thats a form.  This form contains three panels.   One of the panels will be used to display different UserControls as I need them, based on links clicked on one of the other panels.
I can get a form to display ( but not within the panel for some reason).   I'm hoping that there is an easy solution..   Basic code below.  The Method is inside my main form and trying to display a usercontrol.
 
private void linkLabelNewCharacter_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
SavageWorldsCharacterSheet swcs = new SavageWorldsCharacterSheet();    <--- usercontrol being instantiated = true;
swcs.Show();
}
Answers (1)