How do I call an event from code?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a PictureBox that is created as part of an object and has a Click event assigned to it whenever the object is instantiated. How can I call the that Click event from code? Basically I want to do MyObject.PictureBox.Click(). The Sub that handles the Event is private, so I can't call it directly, but the PictureBox is exposed as a Property.

Sean
 
So I can't do it from the PictureBox object anyway? The Sub that handles the Event is Private to my object, where the PictureBox object itself is exposed as a Property. I guess I can just make the Sub public...
 
Back
Top