Click here to Skip to main content
16,006,006 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Setup Interrupted; Requires the .NET Framework Pin
Richard Day1-Aug-03 2:47
Richard Day1-Aug-03 2:47 
GeneralOutlook VBA question Pin
NickOne28-Jul-03 7:53
NickOne28-Jul-03 7:53 
Generalread write file Pin
Anonymous28-Jul-03 5:17
Anonymous28-Jul-03 5:17 
GeneralRe: read write file Pin
dynamic28-Jul-03 8:01
dynamic28-Jul-03 8:01 
GeneralEnter as default key Pin
Emile Jacobs26-Jul-03 23:03
Emile Jacobs26-Jul-03 23:03 
GeneralRe: Enter as default key Pin
Hesham Amin27-Jul-03 5:08
Hesham Amin27-Jul-03 5:08 
GeneralRe: Enter as default key Pin
Emile Jacobs28-Jul-03 5:43
Emile Jacobs28-Jul-03 5:43 
GeneralRe: Enter as default key Pin
Dave Kreskowiak28-Jul-03 7:43
mveDave Kreskowiak28-Jul-03 7:43 
Be careful how you use the terminology. There is no such thing as a "Default Property" in the .NET Framework.

What you are looking for is in the Form Properties. Click on the Form you are using to get the UserName and Password. Under the Misc section in the Properties window you will find AcceptButton and CancelButton. You can assign which button does what and the form will automatically process the ENTER and ESC keys as Accept/OK and Cancel.

Now, to get the OK button to LOOK like a Default button you have to call the NotifyDefault method on the button, probably in the Form's Load event, like this:
Private Sub AuthForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    OKButton.NotifyDefault(True)
End Sub


This will force the button to draw itself with the thicker border of the default button.

RageInTheMachine9532
GeneralOutOfMemoryException Pin
Emile Jacobs26-Jul-03 23:00
Emile Jacobs26-Jul-03 23:00 
GeneralRe: OutOfMemoryException Pin
Nic Rowan29-Jul-03 0:08
Nic Rowan29-Jul-03 0:08 
GeneralRe: OutOfMemoryException Pin
RAVI14331-Jul-03 0:02
RAVI14331-Jul-03 0:02 
GeneralDatabase Backup to CD-R Pin
Emile Jacobs26-Jul-03 4:41
Emile Jacobs26-Jul-03 4:41 
GeneralRe: Database Backup to CD-R Pin
Daniel Turini26-Jul-03 4:56
Daniel Turini26-Jul-03 4:56 
GeneralGlobal Variables Pin
Emile Jacobs26-Jul-03 2:19
Emile Jacobs26-Jul-03 2:19 
GeneralRe: Global Variables Pin
Xiangyang Liu 刘向阳26-Jul-03 2:44
Xiangyang Liu 刘向阳26-Jul-03 2:44 
GeneralRe: Global Variables Pin
Emile Jacobs26-Jul-03 4:38
Emile Jacobs26-Jul-03 4:38 
GeneralRe: Global Variables Pin
Xiangyang Liu 刘向阳26-Jul-03 11:21
Xiangyang Liu 刘向阳26-Jul-03 11:21 
GeneralRe: Global Variables Pin
Emile Jacobs26-Jul-03 22:56
Emile Jacobs26-Jul-03 22:56 
GeneralRe: Global Variables Pin
Martin Cross30-Jul-03 4:50
Martin Cross30-Jul-03 4:50 
GeneralRe: Global Variables Pin
William O'Malley30-Jul-03 5:17
sussWilliam O'Malley30-Jul-03 5:17 
GeneralResizing Form Having Many Controls Pin
RAVI14325-Jul-03 19:42
RAVI14325-Jul-03 19:42 
GeneralRe: Resizing Form Having Many Controls Pin
J. Dunlap25-Jul-03 21:05
J. Dunlap25-Jul-03 21:05 
GeneralRe: Resizing Form Having Many Controls Pin
Nick Seng27-Jul-03 16:19
Nick Seng27-Jul-03 16:19 
GeneralRe: Resizing Form Having Many Controls Pin
Dave Kreskowiak28-Jul-03 8:06
mveDave Kreskowiak28-Jul-03 8:06 
GeneralVisual Inheritance Issues Pin
Andrew Bromfield25-Jul-03 15:21
Andrew Bromfield25-Jul-03 15:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.