I have created my first active x control, a simple login control with two command buttons. One is to login, the other to exit the control. I don't think I am correctly exposing the buttons so that each of them has its own click event. When I place the control on a form and click on either one, I get the same event, login1_click. Login1 is the name of the control. How do I set this up so that the login button has a login_click event, and the exit button has an exit_click event?

I have an Event Click() in the general declarations, and a RaiseEvent Click in each subroutine in the control itself. However, when I as developer try to access the buttons to set up the event on the form, I just get the same event no matter which button I click. I have tried everything I can think of and have looked through 6 different VB books, not finding the answer.

Any help is greatly appreciated.