I have a form where a user enters an item number in a text box and the lostfocus event occurs when they tab out. If the user types a number in, hits tab, then hits a command button to go to another form, everything's fine. But when they go back to the original form, the number's still in the box (has to be that way) and so is the cursor (should be that way), so if the user clicks on "Exit", the lostfocus event occurs, ignoring the Exit_Click event. How can I make it so that they only have to click exit once? Is there a property like frmMain.TabIndex that returns the currently highlighted control?