V
Valerie Hough
I would like to have a number of items on my C# menu and I would like them
all to invoke the same handler, but with each passing different data (say
some integer) that will be based on which menu item was clicked.
I can derive a class from EventArgs, but how do I associate a new instance
of this derived class with a particular menu item click. (the result I want
would be directly analogous to the MouseXXX events that provide dynamic
information like cursor position, etc.
I have seen a couple of discussion threads using
Delegate.CreateDelegate(), but they don't seem to do quite what I want.
Thanks in advance.
Valerie Hough
Thanks in advance.
all to invoke the same handler, but with each passing different data (say
some integer) that will be based on which menu item was clicked.
I can derive a class from EventArgs, but how do I associate a new instance
of this derived class with a particular menu item click. (the result I want
would be directly analogous to the MouseXXX events that provide dynamic
information like cursor position, etc.
I have seen a couple of discussion threads using
Delegate.CreateDelegate(), but they don't seem to do quite what I want.
Thanks in advance.
Valerie Hough
Thanks in advance.