4

Controls.Remove does not Remove

view full story
linux-howto

http://www.daniweb.com – Can anyone tell my why the code... Form1.Controls.Remove(myCustomControl)...does not remove the control. Because whenever I remove a control and add it again, it does not Load but rather just changes its visibility from false to true and all the variables are not reloaded. I tried to use .Dispose() but VB.net tells me that it can't access a disposed object whenever I try to add the control again. Any better methods? (General)