Hi, I have the following problem:
When I click (shift + right mouse click) on a control (label, textbox, checkbox, etc) on a windows form I want to catch that event and identify the control the mouse was over. I can’t use MouseClick event for that control because I want to create a generic function for all forms/controls in the app.
Schematic the problem can be like this:
If mouseclick then
Find topmost control at that position
If controltype= label then Control.text=”Changed”
Elseif controltype=textbox then control.enabled=false
…
Can anybody help me with this?
Thanks.
When I click (shift + right mouse click) on a control (label, textbox, checkbox, etc) on a windows form I want to catch that event and identify the control the mouse was over. I can’t use MouseClick event for that control because I want to create a generic function for all forms/controls in the app.
Schematic the problem can be like this:
If mouseclick then
Find topmost control at that position
If controltype= label then Control.text=”Changed”
Elseif controltype=textbox then control.enabled=false
…
Can anybody help me with this?
Thanks.