Set code to inherited event

  • Thread starter Thread starter Ibai Peña
  • Start date Start date
I

Ibai Peña

Hi,

I´m trying to asign some code to he click event of a PictureBox control.
The event is inherited from Control. The event doesn´t appear in the
properties window, so I cant set the code to the event.
What am I doing wrong?

Regards,
 
I answer myself,

this.PictureBox1.Click += new System.EventHandler (this.PictureBox1_Click);

Such a time waste for such a stupid problem.
 

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