If i were to make an ocx with several command buttons, and place the ocx on a vb form, how would the form "know" which particular button on the ocx had been pressed?

Sure, its easy to use the GotFocus and LostFocus events to know if the WHOLE ocx on the form has been clicked, but i really need to know
which command button was pushed for my program.

Similarly, if a condition is met in the ocx (like x=y), how can i make that raise an event that can be seen by the form other than Public declaring a boolean that changes in the ocx???


God, there really are more questions than answers, but I know you wont let me down. At least I hope you won`t.!

Thanks