PC Review


Reply
Thread Tools Rate Thread

Command1.Default = True

 
 
=?Utf-8?B?UmFuZHkgWW9yaw==?=
Guest
Posts: n/a
 
      20th Aug 2004
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
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      20th Aug 2004
* "=?Utf-8?B?UmFuZHkgWW9yaw==?=" <Randy (E-Mail Removed)> scripsit:
> 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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
=?Utf-8?B?UmFuZHkgWW9yaw==?=
Guest
Posts: n/a
 
      20th Aug 2004
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

"Herfried K. Wagner [MVP]" wrote:

> * "=?Utf-8?B?UmFuZHkgWW9yaw==?=" <Randy (E-Mail Removed)> scripsit:
> > 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.
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      20th Aug 2004
* "=?Utf-8?B?UmFuZHkgWW9yaw==?=" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making the default printer, the true default PRR Windows XP General 3 10th Feb 2010 02:53 AM
AutoSize Default =True =?Utf-8?B?Qm9i?= Microsoft VB .NET 2 1st Feb 2007 12:00 PM
Process.ExitCode returns InvalidOperationException when starting process with RedirectStandardInput = true, RedirectStandardError = true, RedirectStandardOutput = true; SMichal Microsoft Dot NET Framework 0 8th Sep 2006 07:28 AM
Default autoEventWireup changed to true? Danny Tuppeny Microsoft ASP .NET 7 30th Oct 2005 09:43 PM
Set ReminderSet = True as default for all appointments eforce Microsoft Outlook Calendar 1 15th Mar 2004 10:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 PM.