create a array of Control and raise events

Oct 21 2007 4:05 PM
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)