Hi Bonnie,
>As I think I mentioned to you before, EventHandlers work a bit different than methods when overriding things. You can't override the Click EventHandler in your base button. You can sub-class this button and put in another Click EventHandler, as you've done, but the base class's Click EventHandler will always fire first, before the sub-classes Click EventHandler. If you need different behavior in the Click of a button, you're better off creating your own event and raising that event in the base button's click. Then, your sub-classed button can be listening for your own event instead of the Click event. Is this clearer or is it still confusing?
>
>BTW, I'm still hoping that someone with MM knowledge will help you here. I have no way of knowing anything about the MM base classes and I'm just trying to answer in generic terms.
>
>~~Bonnie
You are doing greatwith the answers. I am posting in the MM section because that is what i am dealing with, in all essence i should be posting in the C# area or VS.NET general, because that is where the issue really is.
So in regards to the wonderful reponse, I have a question.
On the button, when i double click it on the designer i adds a event handler called Click()
I create a new method and call it MyClick() in the windows generated area i change the
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
to
this.btnOK.Click += new System.EventHandler(this.btnOK_MyClick);
I think this is what you were telling me to do?
P.S. is there something missing, i added this code and it still runs the AuthenticateUser Method.
Shawn