2
Answers

create a array of Control and raise events

Ask a question
anirudh saraf

anirudh saraf

16y
2.4k
1
Hi,

I am new to VC # and I am stuck as to how to create an array of objects like the treeview programmatically.

After I  create it programmatically using the new statement,  how do I write events for it and figure out which index of the control raised the event?


  treeNB[i] = new System.Windows.Forms.TreeView();

how do I create events for the treeNB object and then use some sort of index property?

Thanks a lot for the help.


Anirudh

Answers (2)