christian smith

christian smith

  • NA
  • 1
  • 11.4k

how do I display a usercontrol on a panel

Jan 13 2011 9:23 PM

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)