Click here to Skip to main content
15,904,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How do I make a RectangleShape, placed on the usercontrol, MouseDown Event trigger Usercontrol.MouseDown Event?

What I have tried:

I have tried EventArgs, MouseEventArgs, RaiseEvent, OnMouseDown, AddHandler. Please do not give me code for Button.Click or RectangleShap.Click. The Click Event always works but I need MouseDown so that I can access e.button2 or Right Button so as to have a popupmenu function.
Updated 26-Mar-23 6:27am

1 solution

You have been goiven a suggested solution to the MouseDown event issue at Working with usercontrols - need mousedown to work in a control (rectangleshape)[^].
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900