Question usercontrol to form1

Piky22

Member
Joined
Nov 19, 2010
Messages
5
Location
Slovenija
Programming Experience
Beginner
Please help me

I wonder why I can not close the terminal of
VB.NET:
xyz.Controls.Add(test)

appears on form1

then I want to close with the touch of a button

VB.NET:
xyz.Controls.Remove(test)
test.Dispose()

shall not be removed from form1

Please help me

:kaioken::kaioken::kaioken::kaioken::kaioken::kaioken:
 
What exactly do you mean by "the terminal of"? That code looks like it should work. What actually happens? Is there an exception thrown? What exactly is on your user control?
 
Back
Top