Detect When a Control Gains Focus

Tech-Archive recommends: Fix windows errors by optimizing your registry



Is there a way to detect when a control gains focus on a webform? Say I
have two text boxes. After the user types in information on the first text
box and hits the tab key or clicks on the second text box, I want to
automatically fill in the second text box with the information from the
first text box.

I just can't seem to find an event handler for when the control gains/loses
focus.

-StinkyDuck


.