Click here to Skip to main content
15,918,193 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionForm Activate / DeActivate Not Firing Pin
auguy6-Oct-08 9:05
auguy6-Oct-08 9:05 
AnswerRe: Form Activate / DeActivate Not Firing Pin
nelsonpaixao7-Oct-08 13:23
nelsonpaixao7-Oct-08 13:23 
GeneralRe: Form Activate / DeActivate Not Firing Pin
auguy9-Oct-08 3:09
auguy9-Oct-08 3:09 
Questionpopulating combobox from Registry error Pin
RighteousBrother6-Oct-08 5:58
RighteousBrother6-Oct-08 5:58 
AnswerRe: populating combobox from Registry error Pin
Mycroft Holmes6-Oct-08 23:30
professionalMycroft Holmes6-Oct-08 23:30 
QuestionHow filter file in WebBrowser?? Pin
Wojciech Nagórski6-Oct-08 1:44
Wojciech Nagórski6-Oct-08 1:44 
AnswerCross Post Pin
led mike6-Oct-08 4:34
led mike6-Oct-08 4:34 
QuestionMultiThread Problem Pin
jpsstavares6-Oct-08 0:36
jpsstavares6-Oct-08 0:36 
Hi all!
In my application I launch a third party application(AUT) to do some tests on it. From my application I launch the AUT in a separate thread so my application doesn't block. My application then analyzes the AUT in search for Clickable controls. I'm able to do this and no Thread has been thrown yet(please tell me if I'm being luck and I shouldn't be doing this).
But then I want to programatically perform a click on that control. The way I'm trying to do it is using UIAutomation. So I try to create a AutomationElement from the control handle. That's when an InvalidOperationException is thrown saying I can't perform that operation because I'm doing it from a different Thread.
I understand this and I've read the "Make Thread-Safe Calls to Windows Form Controls" How-To from Microsoft and the "What's up with BeginInvoke?" article but I haven't realize how to apply this knowledge to my problem. The reason is that the operation I'm trying to do is get the handle from a Control in a thir party application.
Am I missing something? can someone shed some light on me please?

Thanks,
José Tavares
AnswerRe: MultiThread Problem Pin
led mike6-Oct-08 4:40
led mike6-Oct-08 4:40 
GeneralRe: MultiThread Problem Pin
jpsstavares6-Oct-08 4:52
jpsstavares6-Oct-08 4:52 
GeneralRe: MultiThread Problem Pin
led mike6-Oct-08 5:27
led mike6-Oct-08 5:27 
GeneralRe: MultiThread Problem Pin
jpsstavares6-Oct-08 5:49
jpsstavares6-Oct-08 5:49 
AnswerRe: MultiThread Problem Pin
Urs Enzler6-Oct-08 5:11
Urs Enzler6-Oct-08 5:11 
Questionfindwindowex and gettext ??? Pin
TALHAKOSEN5-Oct-08 21:15
TALHAKOSEN5-Oct-08 21:15 
AnswerRe: findwindowex and gettext ??? Pin
Giorgi Dalakishvili5-Oct-08 23:21
mentorGiorgi Dalakishvili5-Oct-08 23:21 
GeneralRe: findwindowex and gettext ??? Pin
TALHAKOSEN6-Oct-08 0:41
TALHAKOSEN6-Oct-08 0:41 
GeneralRe: findwindowex and gettext ??? Pin
TALHAKOSEN6-Oct-08 1:08
TALHAKOSEN6-Oct-08 1:08 
GeneralRe: findwindowex and gettext ??? Pin
Giorgi Dalakishvili6-Oct-08 1:16
mentorGiorgi Dalakishvili6-Oct-08 1:16 
GeneralRe: findwindowex and gettext ??? Pin
TALHAKOSEN6-Oct-08 2:44
TALHAKOSEN6-Oct-08 2:44 
GeneralRe: findwindowex and gettext ??? Pin
Giorgi Dalakishvili6-Oct-08 2:46
mentorGiorgi Dalakishvili6-Oct-08 2:46 
GeneralRe: findwindowex and gettext ??? Pin
TALHAKOSEN6-Oct-08 2:55
TALHAKOSEN6-Oct-08 2:55 
GeneralRe: findwindowex and gettext ??? Pin
Giorgi Dalakishvili6-Oct-08 3:00
mentorGiorgi Dalakishvili6-Oct-08 3:00 
GeneralRe: findwindowex and gettext ??? Pin
TALHAKOSEN6-Oct-08 3:03
TALHAKOSEN6-Oct-08 3:03 
GeneralRe: findwindowex and gettext ??? Pin
Giorgi Dalakishvili6-Oct-08 3:08
mentorGiorgi Dalakishvili6-Oct-08 3:08 
GeneralRe: findwindowex and gettext ??? Pin
TALHAKOSEN6-Oct-08 3:11
TALHAKOSEN6-Oct-08 3:11 

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.