المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Event Trigger



C# Programming
10-01-2009, 04:11 AM
Hello All..
i have a TreeView called "tvwProject" which in the frmLoad function i have the following code:
//tvwProject.SelectedNode = tvwProject.TopNode;
meaning that i don't want any node to be selected in the loading of the frm.

the event's flow continues to the Enter function & automatically to AfterSelect
in the Enter event -> tvwProject.SelectedNode == null
BUT in AfterSelect event -> tvwProject.SelectedNode = first node in treeView

how can i control the selected node ??
how can i see the event flow in my program ??

thank's
Eyal