|
-
Dec 11th, 2002, 04:23 AM
#1
Thread Starter
Member
How to simulate a control array in VB.NET?
Can anyone help me with this:
In VB.NET, control arrays don't exist anymore. Microsoft says that it is unnecessary to have control arrays because of the "one-event-for-multiple-controls" thing.
But now I would like to programatically load/add a control. Like this in VB6:
What is the syntax of this code in VB.NET??
Thanks in advance.
-
Dec 11th, 2002, 07:08 AM
#2
Fanatic Member
M@RTYN
Try this.
VB Code:
Dim mytext As New TextBox()
Dim mypos As New Point(10, 20)
mytext.Location = mypos
Me.Controls.Add(mytext)
Using VB.NET 2003/.NET 1.1/C# 2.0
http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...
-
Dec 11th, 2002, 07:35 AM
#3
Thread Starter
Member
-
Dec 11th, 2002, 08:48 AM
#4
yay gay
u can add events and that things too from there
\m/  \m/
-
Dec 11th, 2002, 09:24 AM
#5
Thread Starter
Member
Can you tell me how I can handle these events?
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
|