March 24, 2006
Hi all
I am new to VB.NET and am using VB.NET 2005.
I have an MDI form with a Split Container Control. On demand I am adding and
removing User Controls on Panel 2. I am using Show() and Hide(). It works
perfectly. The only thing is I would like to remove the User Control from
memory instead of hiding. I tried Dispose(), however then I cannot show this
user control again.
UserControl.Parent=Form.SplitContainer1.Panel2
UserControl.Dock=DockStyle.Fill
UserControl.Show()
..
..
UserControl.Hide()
Thanks.