* "=?Utf-8?B?UmFuZHkgWW9yaw==?=" <Ra*******@discussions.microsoft.com> scripsit:
I Added the Button,
then
added this line to the Form Load Code.
VB6.SetDefault(Button1, True)
i still get the error...
What error?
Did you miss what I said?
Assign the button to the form's 'AcceptButton' property.
Open the form in the Windows Forms designer and simply assign the button
to the form's 'AcceptButton' property. This will be equivalent to
setting a button's 'Default' property to 'True' in VB6.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>