Juan Collado

Juan Collado

  • NA
  • 22
  • 41.9k

Getting events from user controls to main application. VB.net windows

Apr 7 2010 1:28 PM

Ok so I'm finally starting to take advantage of user controls but not grasping some needed concepts.
 
I am now using three buttons on my application that I have changed the appearance with background image.
 
I want to use a usercontrol for those three buttons since they will be used by many applications. I want to avoid having to change the appearance on all of them rather than one place.
 
My problem is that I do not know which button was clicked on the user control.
The three buttons are   1) btReset  2) btSubmit 3) btNextRecord
 
I need th main application to know when one of the button is clicked so i can call the appropiate codes which is on the main application.
Hope this is not too basic to ask.
 
Thanks