Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: Text size in WebBrowser control Pin
Branislav Vidovic19-Jul-09 12:42
Branislav Vidovic19-Jul-09 12:42 
AnswerRe: Text size in WebBrowser control Pin
Luc Pattyn17-Jul-09 10:33
sitebuilderLuc Pattyn17-Jul-09 10:33 
QuestionAdding items at bottom in List View Pin
BalajiRamasamy17-Jul-09 1:44
BalajiRamasamy17-Jul-09 1:44 
AnswerRe: Adding items at bottom in List View Pin
OriginalGriff17-Jul-09 1:46
mveOriginalGriff17-Jul-09 1:46 
AnswerRe: Adding items at bottom in List View Pin
Baeltazor17-Jul-09 1:55
Baeltazor17-Jul-09 1:55 
GeneralRe: Adding items at bottom in List View Pin
BalajiRamasamy17-Jul-09 2:10
BalajiRamasamy17-Jul-09 2:10 
AnswerRe: Adding items at bottom in List View Pin
OkkiePepernoot17-Jul-09 2:36
OkkiePepernoot17-Jul-09 2:36 
QuestionFind Internet Server IP address Pin
vasanth arivali17-Jul-09 1:25
vasanth arivali17-Jul-09 1:25 
AnswerRe: Find Internet Server IP address Pin
Luc Pattyn17-Jul-09 1:44
sitebuilderLuc Pattyn17-Jul-09 1:44 
GeneralRe: Find Internet Server IP address Pin
vasanth arivali17-Jul-09 2:30
vasanth arivali17-Jul-09 2:30 
AnswerRe: Find Internet Server IP address Pin
OriginalGriff17-Jul-09 1:44
mveOriginalGriff17-Jul-09 1:44 
AnswerRe: Find Internet Server IP address Pin
Mirko198017-Jul-09 1:52
Mirko198017-Jul-09 1:52 
GeneralRe: Find Internet Server IP address Pin
harold aptroot17-Jul-09 2:47
harold aptroot17-Jul-09 2:47 
GeneralRe: Find Internet Server IP address Pin
Mirko198017-Jul-09 3:25
Mirko198017-Jul-09 3:25 
GeneralRe: Find Internet Server IP address Pin
harold aptroot17-Jul-09 3:33
harold aptroot17-Jul-09 3:33 
GeneralRe: Find Internet Server IP address Pin
Mirko198017-Jul-09 3:59
Mirko198017-Jul-09 3:59 
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 

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.