Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass value of a variable from one event to another

Status
Not open for further replies.

vaichi123

Programmer
Dec 2, 2006
20
US
I need to pass the name value obtained from a treeview_nodeexpand event to a tabstrip_tabclick event. I am able to get the value of the name but i am unable to pass it in the tabstrip_tabclick event. How can i do this? Both the controls for treeview and tabstrip are set for autopostback = true
 
Put the code from the tabstrip_tabclickl event into a sub. Call that from the tabclick event and from the nodeexpand event and you can use whatever parameters you want.
 
I'm not too familiar with the tree node control, but instead of passing it through the event handler, why not set a property and have the tabstrip read it?

Not too sure if that applies, but I usually do this if I need values to be read from other methods/events.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top