Want to crate a Collection Of Control
-
how to add a windows control(e.g. Button Control) to a collection Suman
-
how to add a windows control(e.g. Button Control) to a collection Suman
What kind of collection do you mean?
ArrayList list = new ArrayList();
list.Add(button); -
What kind of collection do you mean?
ArrayList list = new ArrayList();
list.Add(button);'Declaring Collection Dim mycol as collection 'If I have two button control button1 & button2, Then I want to add this two button to the collection so that I can control them using "For each button in mycol " command Thank you Suman
-
'Declaring Collection Dim mycol as collection 'If I have two button control button1 & button2, Then I want to add this two button to the collection so that I can control them using "For each button in mycol " command Thank you Suman
Dim coll As Collection
coll = New Collection
coll.Add(Button1)
coll.Add(Button2)
Dim b As Button
For Each b In coll
b.Text = "Got you!!!"
Next