Click here to Skip to main content
15,915,501 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: SQLClient and System.Security.SecurityException Pin
sybux200011-Aug-04 6:26
sybux200011-Aug-04 6:26 
Generalanother problem Datagrid Pin
dotnet_cpp10-Jun-04 12:16
dotnet_cpp10-Jun-04 12:16 
Generalinser hyperlink at launching outlookexpress Pin
skoizumi2911010-Jun-04 9:31
sussskoizumi2911010-Jun-04 9:31 
GeneralForms Threading Question Pin
Wingnut7410-Jun-04 7:49
Wingnut7410-Jun-04 7:49 
GeneralRe: Forms Threading Question Pin
Dave Kreskowiak10-Jun-04 8:40
mveDave Kreskowiak10-Jun-04 8:40 
GeneralRe: Forms Threading Question Pin
Wingnut7410-Jun-04 13:48
Wingnut7410-Jun-04 13:48 
GeneralSendkeys to messagebox Pin
Brent Lamborn10-Jun-04 7:32
Brent Lamborn10-Jun-04 7:32 
GeneralRe: Sendkeys to messagebox Pin
Dave Kreskowiak10-Jun-04 8:33
mveDave Kreskowiak10-Jun-04 8:33 
You'll find that the method you've chosen to control another application is problematica at best...

You can use the AppActive function to switch the input focus to the window you want (all you need is the exact title of the window) immediately before using the SendKeys function to send the keystrokes. The problem is, the user or another app can steal the focus at any time after the AppActivate function returns. This means that the focus can be moved before OR DURING the SendKeys function. There is NO ERROR when this happens. There is no way you can catch this situation and handle it. Using SendKey, this is just something you have to leave to chance...


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralOutlook Object Model Guard Pin
Brent Lamborn10-Jun-04 14:20
Brent Lamborn10-Jun-04 14:20 
GeneralRe: Outlook Object Model Guard Pin
Dave Kreskowiak11-Jun-04 10:21
mveDave Kreskowiak11-Jun-04 10:21 
GeneralWindows service problem accessing network share Pin
Member 116497710-Jun-04 6:02
Member 116497710-Jun-04 6:02 
GeneralRe: Windows service problem accessing network share Pin
Dave Kreskowiak10-Jun-04 6:27
mveDave Kreskowiak10-Jun-04 6:27 
GeneralSimple .. Dropdownlist Pin
dotnet_cpp10-Jun-04 6:02
dotnet_cpp10-Jun-04 6:02 
GeneralRe: Simple .. Dropdownlist Pin
Dave Kreskowiak10-Jun-04 6:29
mveDave Kreskowiak10-Jun-04 6:29 
GeneralRe: Simple .. Dropdownlist Pin
dotnet_cpp10-Jun-04 7:01
dotnet_cpp10-Jun-04 7:01 
GeneralRe: Simple .. Dropdownlist Pin
Dave Kreskowiak10-Jun-04 7:27
mveDave Kreskowiak10-Jun-04 7:27 
GeneralRe: Simple .. Dropdownlist Pin
dotnet_cpp10-Jun-04 8:13
dotnet_cpp10-Jun-04 8:13 
GeneralRe: Simple .. Dropdownlist Pin
Dave Kreskowiak10-Jun-04 8:26
mveDave Kreskowiak10-Jun-04 8:26 
GeneralRe: Simple .. Dropdownlist Pin
dotnet_cpp10-Jun-04 8:49
dotnet_cpp10-Jun-04 8:49 
GeneralRe: Simple .. Dropdownlist Pin
Dave Kreskowiak10-Jun-04 9:00
mveDave Kreskowiak10-Jun-04 9:00 
GeneralRe: Simple .. Dropdownlist Pin
dotnet_cpp10-Jun-04 11:06
dotnet_cpp10-Jun-04 11:06 
GeneralRe: Simple .. Dropdownlist Pin
Dave Kreskowiak10-Jun-04 11:38
mveDave Kreskowiak10-Jun-04 11:38 
GeneralVBA/Excel - Charting question Pin
Jon G10-Jun-04 5:10
Jon G10-Jun-04 5:10 
GeneralRe: VBA/Excel - Charting question Pin
Jon G10-Jun-04 5:25
Jon G10-Jun-04 5:25 
Questionsqldataadapter? Pin
ymohd_22210-Jun-04 3:20
ymohd_22210-Jun-04 3:20 

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.