T
T.Davis
Okay, when you subscribe to an event, and that event fires, it is
passed (sender, eventargs), yea?
So what is sender? Can you do anything with it other than toString()?
If it's a reference to the object that fired the event, how can I
access that object's properties?
I'm new, and am trying to get my sea legs. I've got an application
that fills a treeview with tables from a mysql database.
I've added a context menu. I want one of the items to be "load this
table." In order for that to work, I need to get the text of the
treeview node. How do I do this?
treeview
+ blah table <-- context menu from this part, select "Load this
table" Need to get "blah"
- id
- name
- isugly
+ blah_again table
- id
- name
- description
Thanks in advance.
ps.
i find the word "newbie" icky.
passed (sender, eventargs), yea?
So what is sender? Can you do anything with it other than toString()?
If it's a reference to the object that fired the event, how can I
access that object's properties?
I'm new, and am trying to get my sea legs. I've got an application
that fills a treeview with tables from a mysql database.
I've added a context menu. I want one of the items to be "load this
table." In order for that to work, I need to get the text of the
treeview node. How do I do this?
treeview
+ blah table <-- context menu from this part, select "Load this
table" Need to get "blah"
- id
- name
- isugly
+ blah_again table
- id
- name
- description
Thanks in advance.
ps.
i find the word "newbie" icky.