Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...