That's not focus, but the Default command button. If the user presses Enter while on the form, the Button.Click() will fire.
>Hi! I have a form with fields & buttons at the bottom of my screen, the cursor sits nicely on the 1st field on my form, but also one of my buttons at the botton has a dark line around it.
>
>My users insist on pressing Enter instead of TAB and thats pressing the button? Didn't thing focus could be on both objects?
>
>Any help extremley appreciated
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer