|
-
Jun 28th, 2002, 01:08 AM
#1
Thread Starter
New Member
control arrays 4
thanx for the replies guys but i didnt get what i want yet.
i want to create copies of an existing control with its same properties not new controls.
the following code doesnt work although its very logical.
Dim tbNew as New TextBox1
tbNew.Text = "Copy of TextBox1"
tbNew.Location = New System.Drawing.Point(12, 12)
Me.Controls.Add(tbNew)
and to make my point clear, i dont want to create a pointer to an existing control or another control of the same type. I WANT A COPY OF AN EXISTING CONTROL WITH ITS PROPERTIES JUST AS WE USED TO DO WITH CONTROL ARRAYS IN VB6.
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
|