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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top