Home All Groups Group Topic Archive Search About

Using control array run time with different control names

Author
18 Jan 2006 11:21 AM
AB
Hi All,
I would like to add controls that stored in DB dynamically, and I don't
know their names or their number. The names of the controls is
important therefore I can't create cmbArr(0), cmbArr(1),and so on. The
importance of the control array is because I need to use events such as
MouseDown, MouseClick for all the controls in order to resize and
change their location in runtime.

Anyone know if it is possible? (Using control array run time with
different control names)

Thank you.

AB

Author
18 Jan 2006 11:32 AM
Ken Tucker [MVP]
Hi,

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet05132003.asp

Ken
-------------------
Show quoteHide quote
"AB" <avi.bar***@Hp.com> wrote in message
news:1137583271.518617.90930@g44g2000cwa.googlegroups.com...
> Hi All,
> I would like to add controls that stored in DB dynamically, and I don't
> know their names or their number. The names of the controls is
> important therefore I can't create cmbArr(0), cmbArr(1),and so on. The
> importance of the control array is because I need to use events such as
> MouseDown, MouseClick for all the controls in order to resize and
> change their location in runtime.
>
> Anyone know if it is possible? (Using control array run time with
> different control names)
>
> Thank you.
>
> AB
>
Author
18 Jan 2006 1:48 PM
AB
Thank you.
But it is good only in VB 2005 and I write in VB6.
Do you know a solution in VB6?
Author
18 Jan 2006 2:20 PM
Herfried K. Wagner [MVP]
"AB" <avi.bar***@Hp.com> schrieb:
> But it is good only in VB 2005 and I write in VB6.
> Do you know a solution in VB6?

Please do not direct VB6-related questions to the VB.NET group
"microsoft.public.dotnet.languages.vb" in future.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
18 Jan 2006 2:22 PM
Rocky
You can use the tag property to store a name.

Show quoteHide quote
"AB" <avi.bar***@Hp.com> wrote in message
news:1137592138.217916.213920@g14g2000cwa.googlegroups.com...
> Thank you.
> But it is good only in VB 2005 and I write in VB6.
> Do you know a solution in VB6?
>