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

Visual Basic

 
AnswerRe: Crystal Reports RDC in VB? Pin
david s_5-Jul-06 22:14
david s_5-Jul-06 22:14 
GeneralRe: Crystal Reports RDC in VB? Pin
DEWright_CA6-Jul-06 3:35
DEWright_CA6-Jul-06 3:35 
QuestionVS.net Add Web reference Pin
bemahesh5-Jul-06 9:46
bemahesh5-Jul-06 9:46 
AnswerRe: VS.net Add Web reference Pin
Dave Kreskowiak5-Jul-06 11:03
mveDave Kreskowiak5-Jul-06 11:03 
GeneralRe: VS.net Add Web reference Pin
bemahesh6-Jul-06 4:08
bemahesh6-Jul-06 4:08 
GeneralRe: VS.net Add Web reference Pin
Dave Kreskowiak6-Jul-06 15:24
mveDave Kreskowiak6-Jul-06 15:24 
QuestionActive Window Pin
szevy_suez5-Jul-06 5:35
szevy_suez5-Jul-06 5:35 
AnswerRe: Active Window Pin
Dave Kreskowiak5-Jul-06 5:59
mveDave Kreskowiak5-Jul-06 5:59 
Kind of. I know where you're going with this ... SendKeys.

You can change the active application using VB6's AppActive function. All you need to do is give it the window title that it needs to find. The problem is, you can guarantee it's going to stay there between the time you call AppActivate and SendKeys get's done sending its information.

Once your done, to get the focus back to your own app, all you do is call SetFocus on the control on your form that you want the focus sent to.

Focus can change at any time, even while you, or SendKeys, is typing in a control. It's maddening when a background service just insists on popping up a warning dialog, or someone has a IM window open, like Yahoo Messenger, and a message comes in, stealing the focus from yours or any other application!


Dave Kreskowiak
Microsoft MVP - Visual Basic

Questionscan the picture and print Pin
muhsyed05-Jul-06 3:18
muhsyed05-Jul-06 3:18 
AnswerRe: scan the picture and print Pin
Dave Kreskowiak5-Jul-06 4:22
mveDave Kreskowiak5-Jul-06 4:22 
AnswerRe: scan the picture and print Pin
Vasudevan Deepak Kumar5-Jul-06 19:26
Vasudevan Deepak Kumar5-Jul-06 19:26 
QuestionExecute EXE Pin
nitin_ion5-Jul-06 1:06
nitin_ion5-Jul-06 1:06 
AnswerRe: Execute EXE Pin
Dave Kreskowiak5-Jul-06 1:30
mveDave Kreskowiak5-Jul-06 1:30 
GeneralRe: Execute EXE Pin
nitin_ion5-Jul-06 18:54
nitin_ion5-Jul-06 18:54 
GeneralRe: Execute EXE Pin
Dave Kreskowiak6-Jul-06 2:22
mveDave Kreskowiak6-Jul-06 2:22 
GeneralRe: Execute EXE Pin
nitin_ion6-Jul-06 2:24
nitin_ion6-Jul-06 2:24 
GeneralRe: Execute EXE Pin
Dave Kreskowiak6-Jul-06 2:34
mveDave Kreskowiak6-Jul-06 2:34 
GeneralRe: Execute EXE Pin
nitin_ion6-Jul-06 17:23
nitin_ion6-Jul-06 17:23 
GeneralRe: Execute EXE Pin
Dave Kreskowiak7-Jul-06 2:01
mveDave Kreskowiak7-Jul-06 2:01 
QuestionControlling other windows from VB.NET application Pin
seamie5-Jul-06 1:03
seamie5-Jul-06 1:03 
AnswerRe: Controlling other windows from VB.NET application Pin
Dave Kreskowiak5-Jul-06 1:34
mveDave Kreskowiak5-Jul-06 1:34 
GeneralRe: Controlling other windows from VB.NET application Pin
seamie5-Jul-06 2:53
seamie5-Jul-06 2:53 
QuestionRe: Controlling other windows from VB.NET application Pin
mr_lasseter5-Jul-06 7:33
mr_lasseter5-Jul-06 7:33 
AnswerRe: Controlling other windows from VB.NET application Pin
Dave Kreskowiak5-Jul-06 8:18
mveDave Kreskowiak5-Jul-06 8:18 
Questiondiffrence between vb exe file and other Pin
zon_cpp5-Jul-06 0:46
zon_cpp5-Jul-06 0:46 

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.