Hi,
Using C# and VS2010,
I try to create a user control which inherits from a PictureBox, lets call it NewPicBox. I have declared it in a new file under the project.
I have added to the NewPicBox designer a ContextMenuStri,
Should i add to the NewPicBox designer a regular PictureBox in order to have the PictureBox functionality?
I then want to place NewPicBox on a form,
Can i do that like placing a regular PictureBox if so how? i cant see it on the designer? should i do it dynamically, how?
I also want to handle the event of user pressing the NewPicBox with the mouse.
In order to handle the mouse event Should I declare the MouseUp as new?
(new protected void MouseUp(object sender, MouseEventArgs e)
Is there another way to handle those events?
Thanks!
What I have tried:
Creating the NewPicBox By right click on Projects' name Add->New Item...->Custom Control
and changing the inheritance from Control to PictueBox