cnlambert Posted October 30, 2003 Posted October 30, 2003 I searched and I searched but found none... Anyone have a clue as to how one would go about creating a duplicate control from a dynamically created one in .NET? I need to put another instance of a control from one form onto another and make it full screen, then after the full screen is closed, the original control is unaltered. Also, any ideas how I might better handle this would be most appreciated! Quote
hog Posted October 30, 2003 Posted October 30, 2003 Can't you just declare control2 as control1? Quote My website
cnlambert Posted October 30, 2003 Author Posted October 30, 2003 if you mean like such: dim ctl2 as new ctl1 then, no, because the control is dynamically created during runtime. When I set the new control equal to the existing one, both are disposed of when the 2nd is removed from the form. like such: NewForm_Load Event dim ctl2 as new controltype ctl2 = OrigForm.Controls(ControlIndex) then, on NewForm.Close, ctl2 and OrigForm.Controls(ControlIndex) are destroyed. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.