I guess you have completely misunderstood the
Focus
's behavior. Its in no way related to clicking inside the container of your control. For that, you will have to write a custom-event and in the code-behind you will have to finally include the line as
Button2.Focus();
This is what for which
Focus
is destined.
If you still have any concerns,can you please confirm if clicking on the panel and getting focus on the button was your requirement or were you just playing to have a feel of the
Focus
's behavior?
HTH
Regards
Rajeev
Please vote and mark answer as accepted if this helps you