|
-
Feb 16th, 2005, 03:25 PM
#1
Thread Starter
Member
Copying control from one form to another
I want to (programatically) copy a panel control from one form to a new form, then open the new form. Here's what I've got so far:
Dim frm As New frmOnTop
Dim ctl As Panel
ctl = pnlComments
With frm
.Controls.Add(ctl)
.Text = "Comments"
.Show()
End With
This works, but it removes the panel (pnlComments) from the original form. I just want a copy of it on the new form.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|