I have a user control which has a pictureBox. When the pictureBox paints i'd like to perform an action.
with this code i get an error saying "Virtual or abstract methods cannot be private" I changed it to public and then get an error saying "There is no matching method to override."
What do i have to do to make that work?
brandon
C#:
public class UserControl1
//auto generated code
{
//picLogo created in designer
private override void picLogo_OnPaint (System.Windows.Forms.PaintEventArgs e)
{
MessageBox.Show("painted");
}
}
with this code i get an error saying "Virtual or abstract methods cannot be private" I changed it to public and then get an error saying "There is no matching method to override."
What do i have to do to make that work?
brandon