2 Replies - 504 Views - Last Post: 31 January 2015 - 02:22 PM Rate Topic: -----

#1 ZakaryHansen  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 164
  • Joined: 28-February 14

Find if one of the components in a certain panel is focused?

Posted 30 January 2015 - 08:24 PM

I'm wanting to change the background color of the panel in focus so the user can follow the program a bit better.
The only problem is, Panel1.GotFocus/LostFocus don't get called if one of the components within are focused.

What would be the best way to do this? Is it possible to see the parent of the component in focus? Like, with TreeViews, you can get the parents and from there can establish what point in the tree you're at.. Is there anything like that I can do?

Is This A Good Question/Topic? 0
  • +

Replies To: Find if one of the components in a certain panel is focused?

#2 ZakaryHansen  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 164
  • Joined: 28-February 14

Re: Find if one of the components in a certain panel is focused?

Posted 30 January 2015 - 09:01 PM

Oh, using .Enter and .Leave works well. Nevermind, sorry for posting.
Was This Post Helpful? 1
  • +
  • -

#3 IronRazer  Icon User is offline

  • Custom Control Freak
  • member icon

Reputation: 1468
  • View blog
  • Posts: 3,724
  • Joined: 01-February 13

Re: Find if one of the components in a certain panel is focused?

Posted 31 January 2015 - 02:22 PM

Glad to see you figured it out and shared the solution for others to learn from. ;)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1