Click here to Skip to main content
15,890,845 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralTrouble with Shell and Sendkeys Pin
Member 1034848620-Oct-13 19:45
Member 1034848620-Oct-13 19:45 
GeneralRe: Trouble with Shell and Sendkeys Pin
Dave Kreskowiak21-Oct-13 1:38
mveDave Kreskowiak21-Oct-13 1:38 
GeneralRe: Trouble with Shell and Sendkeys Pin
Member 1034848623-Oct-13 1:03
Member 1034848623-Oct-13 1:03 
GeneralRe: Trouble with Shell and Sendkeys Pin
Dave Kreskowiak23-Oct-13 2:23
mveDave Kreskowiak23-Oct-13 2:23 
GeneralRe: Trouble with Shell and Sendkeys Pin
Eddy Vluggen23-Oct-13 7:29
professionalEddy Vluggen23-Oct-13 7:29 
GeneralRe: Trouble with Shell and Sendkeys Pin
Dave Kreskowiak23-Oct-13 9:01
mveDave Kreskowiak23-Oct-13 9:01 
GeneralRe: Trouble with Shell and Sendkeys Pin
Member 1034848623-Oct-13 20:49
Member 1034848623-Oct-13 20:49 
GeneralRe: Trouble with Shell and Sendkeys Pin
Dave Kreskowiak24-Oct-13 3:15
mveDave Kreskowiak24-Oct-13 3:15 
THe entire problem is that you Shell Paint and then you immediately try to Activate it or SendKey to it. Well, Paint hasn't started yet, so those operations do nothing because Paint doesn't have a window yet.

You have to wait for Paint to start and show itself before you can do anything else with it.

In VB.NET, this is two lines of code, uising the Process class. In VB6, it's a bunch more. You don't have a Process class and, hence, you don't have WaitForInputIdle either. You have to write this code yourself.

In VB6, you'd launch Paint, then call the Win32 API function OpenProcess to get the process handle, pass that handle to the Win32 function WaitForInputIdle, then call ReleaseProcessHandle on the handle you got. Seems simple enough, right? Try getting the handle to a Process that hasn't completely started yet...

QuestionUpdating data in fields Pin
SPSandy19-Oct-13 21:38
SPSandy19-Oct-13 21:38 
AnswerRe: Updating data in fields Pin
Dave Kreskowiak20-Oct-13 3:19
mveDave Kreskowiak20-Oct-13 3:19 
GeneralRe: Updating data in fields Pin
SPSandy20-Oct-13 15:57
SPSandy20-Oct-13 15:57 
GeneralRe: Updating data in fields Pin
Dave Kreskowiak20-Oct-13 17:00
mveDave Kreskowiak20-Oct-13 17:00 
GeneralRe: Updating data in fields Pin
SPSandy21-Oct-13 0:14
SPSandy21-Oct-13 0:14 
GeneralRe: Updating data in fields Pin
Dave Kreskowiak21-Oct-13 1:35
mveDave Kreskowiak21-Oct-13 1:35 
GeneralRe: Updating data in fields Pin
Mycroft Holmes20-Oct-13 17:56
professionalMycroft Holmes20-Oct-13 17:56 
QuestionImporting rss to openoffice Pin
joestudent1219-Oct-13 4:34
joestudent1219-Oct-13 4:34 
AnswerRe: Importing rss to openoffice Pin
Kenneth Haugland19-Oct-13 5:05
mvaKenneth Haugland19-Oct-13 5:05 
QuestionDuplicate document on memory... is it possible (VBA, Word 2010 Macro) Pin
rbid18-Oct-13 5:25
rbid18-Oct-13 5:25 
AnswerRe: Duplicate document on memory... is it possible (VBA, Word 2010 Macro) Pin
TnTinMn19-Oct-13 8:07
TnTinMn19-Oct-13 8:07 
QuestionFormat json file (read and processing it) Pin
Ammar_Ahmad17-Oct-13 8:17
Ammar_Ahmad17-Oct-13 8:17 
AnswerRe: Format json file (read and processing it) Pin
Richard Deeming17-Oct-13 8:56
mveRichard Deeming17-Oct-13 8:56 
QuestionDatagrid view problem Pin
Member 1019283517-Oct-13 1:40
Member 1019283517-Oct-13 1:40 
AnswerRe: Datagrid view problem Pin
Chris Quinn17-Oct-13 3:32
Chris Quinn17-Oct-13 3:32 
AnswerRe: Datagrid view problem Pin
thatraja17-Oct-13 4:38
professionalthatraja17-Oct-13 4:38 
AnswerRe: Datagrid view problem Pin
GuyThiebaut17-Oct-13 5:45
professionalGuyThiebaut17-Oct-13 5: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.