Click here to Skip to main content
15,909,591 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Random Number Maths Quiz Pin
Corinna John1-Sep-03 3:18
Corinna John1-Sep-03 3:18 
GeneralRe: Random Number Maths Quiz Pin
Corinna John1-Sep-03 6:16
Corinna John1-Sep-03 6:16 
QuestionHow do I check if a registry entry exists in the windows registry. Pin
Simon_22117528-Aug-03 19:08
Simon_22117528-Aug-03 19:08 
AnswerRe: How do I check if a registry entry exists in the windows registry. Pin
Dave Kreskowiak29-Aug-03 4:54
mveDave Kreskowiak29-Aug-03 4:54 
QuestionHow do I export a registry hive? Pin
wobblervb28-Aug-03 16:24
wobblervb28-Aug-03 16:24 
AnswerRe: How do I export a registry hive? Pin
Dave Kreskowiak29-Aug-03 9:10
mveDave Kreskowiak29-Aug-03 9:10 
GeneralXP Accelerators and Focus Rects Pin
Punchinello28-Aug-03 4:00
Punchinello28-Aug-03 4:00 
GeneralRe: XP Accelerators and Focus Rects Pin
Dave Kreskowiak28-Aug-03 8:24
mveDave Kreskowiak28-Aug-03 8:24 
If I read this right, you just want to move the input focus to a button control. In VB.NET, that's easy:
controlName.Focus()

will set the focus to that control. BUT!! (There's always one of these!)

Long version:
A control cannot receive focus unless it is enabled, is visible, AND HAS A WINDOW HANDLE ASSIGNED TO IT! What this means is, you can only set the focus to the control AFTER it has actually been created and it's Message Loop is up and running.

Short version:
If you try and set the focus to a control in a Form's Load event, you must first Show() the form, THEN set the focus to the control. Otherwise it won't work.


RageInTheMachine9532
GeneralRe: XP Accelerators and Focus Rects Pin
Punchinello28-Aug-03 8:52
Punchinello28-Aug-03 8:52 
GeneralRe: XP Accelerators and Focus Rects Pin
Dave Kreskowiak28-Aug-03 9:57
mveDave Kreskowiak28-Aug-03 9:57 
GeneralRe: XP Accelerators and Focus Rects Pin
Punchinello28-Aug-03 11:18
Punchinello28-Aug-03 11:18 
GeneralRe: XP Accelerators and Focus Rects Pin
J. Dunlap28-Aug-03 11:21
J. Dunlap28-Aug-03 11:21 
GeneralRe: XP Accelerators and Focus Rects Pin
Punchinello28-Aug-03 11:47
Punchinello28-Aug-03 11:47 
GeneralGranting "Logon As Service Rights" Pin
alunboyd28-Aug-03 3:09
alunboyd28-Aug-03 3:09 
GeneralRe: Granting "Logon As Service Rights" Pin
Dave Kreskowiak28-Aug-03 8:27
mveDave Kreskowiak28-Aug-03 8:27 
GeneralRe: Granting "Logon As Service Rights" Pin
alunboyd28-Aug-03 12:46
alunboyd28-Aug-03 12:46 
GeneralRe: Granting "Logon As Service Rights" Pin
Dave Kreskowiak28-Aug-03 14:16
mveDave Kreskowiak28-Aug-03 14:16 
GeneralRe: Granting "Logon As Service Rights" Pin
alunboyd1-Sep-03 8:21
alunboyd1-Sep-03 8:21 
GeneralGarbage Management Pin
fume27-Aug-03 20:36
fume27-Aug-03 20:36 
GeneralMDI Apps problems Pin
fume27-Aug-03 20:34
fume27-Aug-03 20:34 
GeneralRe: MDI Apps problems Pin
palace18-Sep-03 4:20
palace18-Sep-03 4:20 
GeneralVB Slowdown after compilation Pin
Anonymous27-Aug-03 15:05
Anonymous27-Aug-03 15:05 
GeneralRe: VB Slowdown after compilation Pin
Ray Cassick27-Aug-03 15:23
Ray Cassick27-Aug-03 15:23 
GeneralRe: VB Slowdown after compilation Pin
Dave Kreskowiak28-Aug-03 9:01
mveDave Kreskowiak28-Aug-03 9:01 
Generalone stupid question.. Pin
pnpfriend27-Aug-03 9:45
pnpfriend27-Aug-03 9:45 

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.