Command1.Default = True

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What happened to this very simple VB6 command?

I am trying to make a button in a .net App the Default and I cannot get it
to work,

Why is this so Difficult,

RY
 
* "=?Utf-8?B?UmFuZHkgWW9yaw==?= said:
What happened to this very simple VB6 command?

I am trying to make a button in a .net App the Default and I cannot get it
to work,

Assign the button to the form's 'AcceptButton' property.
 
I Added the Button,

then

added this line to the Form Load Code.

VB6.SetDefault(Button1, True)
i still get the error...

I hate .net
 
* "=?Utf-8?B?UmFuZHkgWW9yaw==?= said:
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?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top