Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child controls in panel event handling
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Child controls in panel event handling
Environment versions
Environment:
C# 5.0
OS:
Windows 7
Network:
SAMBA Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01621652
Message ID:
01621652
Views:
63
Hi all, I have a form with a TableLayoutPanel occupying one half of the form, the panel contains lots of custom usercontrols, within the user controls I hook up some events which change the appearance of the control when it is selected or loses focus ( I change their back colour to red when they have focus and reset it to default when they don't) all works as expected while the panel / user control has focus, however if I click on a control outside of the panel the events still fire - which is not what I want as I want the user to know which control in the panel has focus ( the user controls are datagrids containg sets of interest rates ) I hope this makes sense ! so my question is , how can I restrict the events so they only fire when the panel has focus ?
Regards,
Peter J. Kane



Pete
Next
Reply
Map
View

Click here to load this message in the networking platform