Control Array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All

Is it possible to create a control array (i.e. button control array) in vb.net 2003 targeting compact framework.net

Studio: VS 2003.ne
Platform ce.net
Language VB.ne

I will appreciate any response

Thanks
 
There is no Control array as such in VB.NET, on the desktop or CF. However,
you can create a custom collection and add your buttons to it. You can
store them in an array, or you can address them through you forms controls
collection.

This is pretty much the process
http://searchvb.techtarget.com/vsnetATEAnswers/0,293820,sid8_gci884833_tax293674,00.html
Stavros Varavvas said:
Hello All,

Is it possible to create a control array (i.e. button control array) in
vb.net 2003 targeting compact framework.net ?
 
What about System.Windows.Forms.Form.ControlCollection

Dim Collection As System.Windows.Forms.Form.ControlCollectio
Collection.Add(New Button
MessageBox.Show(Collection(0).Text)
 
forgot. In the new controlcollection you need to give it a parent
New ControlCollection(New Panel
works for me
 
William said:
There is no Control array as such in VB.NET, on the desktop or CF. However,
you can create a custom collection and add your buttons to it. You can
store them in an array, or you can address them through you forms controls
collection.

And what about

Dim myTxt as TextBox()

?

But sincerely I don't understand this needing of control array.

Bye
 
Back
Top