Click here to Skip to main content
15,879,348 members
Home / Discussions / C#
   

C#

 
GeneralRe: Find Internet Server IP address Pin
harold aptroot17-Jul-09 4:22
harold aptroot17-Jul-09 4:22 
AnswerRe: Find Internet Server IP address Pin
harold aptroot17-Jul-09 2:49
harold aptroot17-Jul-09 2:49 
QuestionHow to bring a window to foreground on Vista? Pin
verence33317-Jul-09 0:38
verence33317-Jul-09 0:38 
AnswerRe: How to bring a window to foreground on Vista? Pin
musefan17-Jul-09 1:20
musefan17-Jul-09 1:20 
GeneralRe: How to bring a window to foreground on Vista? Pin
verence33317-Jul-09 1:45
verence33317-Jul-09 1:45 
AnswerRe: How to bring a window to foreground on Vista? Pin
Simon P Stevens17-Jul-09 1:24
Simon P Stevens17-Jul-09 1:24 
GeneralRe: How to bring a window to foreground on Vista? Pin
verence33317-Jul-09 1:58
verence33317-Jul-09 1:58 
AnswerRe: How to bring a window to foreground on Vista? Pin
Luc Pattyn17-Jul-09 1:33
sitebuilderLuc Pattyn17-Jul-09 1:33 
Hi,

I did some automation to have two apps exchange some data. It used the whole range of Get/SetForeGroundWindow, SendKeys, SendInput, and what have you. It runs fine on both XP and Vista, never had any trouble with it. I did develop on Vista (my main machine runs Vista, and I like it!), and it worked on XP right away. I just don't know if the reverse would also have worked right away.

I did implement automatic retries and a range of checks, e.g. after each SetForeGroundWindow, I wait some msec, then check by reading the title of the result of GetForeGroundWindow, to make absolutely sure I wasn't sending keyboard/mouse actions to the wrong app (the user, not me, might be touching the system while this automation is running).

BTW: I did not use AttachThreadInput, I hadn't even heard of it.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: How to bring a window to foreground on Vista? Pin
verence33317-Jul-09 2:01
verence33317-Jul-09 2:01 
AnswerRe: How to bring a window to foreground on Vista? Pin
verence33319-Jul-09 20:09
verence33319-Jul-09 20:09 
QuestionError Pin
john563217-Jul-09 0:32
john563217-Jul-09 0:32 
AnswerRe: Error Pin
0x3c017-Jul-09 0:35
0x3c017-Jul-09 0:35 
GeneralRe: Error Pin
john563217-Jul-09 0:55
john563217-Jul-09 0:55 
GeneralRe: Error Pin
0x3c017-Jul-09 1:05
0x3c017-Jul-09 1:05 
GeneralRe: Error Pin
john563217-Jul-09 1:35
john563217-Jul-09 1:35 
GeneralRe: Error Pin
0x3c017-Jul-09 1:44
0x3c017-Jul-09 1:44 
GeneralRe: Error Pin
john563217-Jul-09 2:33
john563217-Jul-09 2:33 
QuestionC# compression Pin
GauravKP17-Jul-09 0:05
professionalGauravKP17-Jul-09 0:05 
AnswerRe: C# compression Pin
Luc Pattyn17-Jul-09 0:20
sitebuilderLuc Pattyn17-Jul-09 0:20 
AnswerRe: C# compression Pin
Alan Balkany17-Jul-09 3:53
Alan Balkany17-Jul-09 3:53 
QuestionHow to make a pipe continuously availble for other C# application. Pin
svt gdwl16-Jul-09 23:55
svt gdwl16-Jul-09 23:55 
QuestionErrr..... Plugin Architecture in Visual C# (kind of a rant, but more of a question, really...No wait, actually... It's just a question.) Pin
Baeltazor16-Jul-09 23:44
Baeltazor16-Jul-09 23:44 
AnswerRe: Errr..... Plugin Architecture in Visual C# (kind of a rant, but more of a question, really...No wait, actually... It's just a question.) Pin
HuntingWabbits16-Jul-09 23:58
HuntingWabbits16-Jul-09 23:58 
GeneralRe: Errr..... Plugin Architecture in Visual C# (kind of a rant, but more of a question, really...No wait, actually... It's just a question.) Pin
Baeltazor17-Jul-09 0:39
Baeltazor17-Jul-09 0:39 
GeneralRe: Errr..... Plugin Architecture in Visual C# (kind of a rant, but more of a question, really...No wait, actually... It's just a question.) Pin
HuntingWabbits17-Jul-09 0:56
HuntingWabbits17-Jul-09 0:56 

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.