I have:
- Textbox(Multi-line)
- Panel
- Different controls inside panel (buttons,textbox)
Scenario:
I need to add text to the textbox when my mouse is in the scope of my panel or inside the area of the panel and clears the textbox again when not focusing in panel.
I used MouseHover and MouseLeave event for this effects. The problem is when I focus on any control inside the panel, the the mouse seems losing the focus in panel and calls MouseLeave event.
Is there a way to add event when mouse is inside the scope of panel?
You can use the
MouseLeaveof your panel and check if your mouse location isn’t really into the panel surface.