>OK. Can you help me see what the code would look like? And how can the control pass values to the event?
>
>Just so you know what I am trying to do here is I have a textbox/button combo, and the textbox has a tablename, and indexname properties that are passed to a search window and the user types the search string, and then I want to activate code to do the search and update the windows on the form with the new record data. The form is one class, the search functionality is in another class and the textbox/button is another class (they say you're supposed to write this stuff in multiple tiers :)
>
The thing that made events hard for me to grasp was so many developers use different naming conventions for some of the items. Just as a precaution as you read up on events, delegates, etc. is don't get hung up on the name. The example I gave you is the convention I use because it names things what they are. The example in this link calls the delegate a handler but a good example to look through.
http://www.codeproject.com/KB/cs/events.aspxTim
Timothy Bryan