Click here to Skip to main content
15,891,657 members
Home / Discussions / C#
   

C#

 
GeneralRe: Send Mouse motion using sendMessage() Pin
BillWoodruff5-Mar-15 3:48
professionalBillWoodruff5-Mar-15 3:48 
GeneralRe: Send Mouse motion using sendMessage() Pin
Gerry Schmitz5-Mar-15 5:27
mveGerry Schmitz5-Mar-15 5:27 
GeneralRe: Send Mouse motion using sendMessage() Pin
Pete O'Hanlon5-Mar-15 7:12
mvePete O'Hanlon5-Mar-15 7:12 
GeneralRe: Send Mouse motion using sendMessage() Pin
Gerry Schmitz5-Mar-15 11:00
mveGerry Schmitz5-Mar-15 11:00 
Questionhow to design E R D for language dictionary Pin
Member 112641494-Mar-15 19:02
Member 112641494-Mar-15 19:02 
AnswerRe: how to design E R D for language dictionary Pin
OriginalGriff4-Mar-15 19:43
mveOriginalGriff4-Mar-15 19:43 
AnswerRe: how to design E R D for language dictionary Pin
Pete O'Hanlon4-Mar-15 22:19
mvePete O'Hanlon4-Mar-15 22:19 
QuestionRunning forms in a thread in .NET Pin
landersohn694-Mar-15 8:45
landersohn694-Mar-15 8:45 
For a variety of reasons I am running a Windows Forms app which creates several threads. In each of these threads I create another form that hosts an ActiveX control (3rd party which requires a window).
This runs kind of OK but I have some problems and hope you can help:
- When I try to create a Windows.Forms.Timer on the form I created in my thread, it never calls the callback. Any idea?
- I can use a System.Timers.Timer but then I have problems in the event handler to use Invoke to access methods of my second form
- If my ActiveX control sends an event from this secondary thread, is that event handled in the main application message pump?
- I have a seen a lot of articles on how I can raise an event from a thread where the event handler runs on the GUI thread. How about the other way round? Can I raise an event from the GUI thread that then executes in some other thread? I could not make that work.

Sorry about the many questions.

BTW, I cannot replace the ActiveX controls with something else and they have to run in separate threads to increase speed. I am basically doing 4 simultaneous OCR operations and I need to do it fast, hence the threads.
AnswerRe: Running forms in a thread in .NET PinPopular
Eddy Vluggen4-Mar-15 9:04
professionalEddy Vluggen4-Mar-15 9:04 
GeneralRe: Running forms in a thread in .NET Pin
landersohn694-Mar-15 9:18
landersohn694-Mar-15 9:18 
GeneralRe: Running forms in a thread in .NET Pin
Eddy Vluggen4-Mar-15 9:29
professionalEddy Vluggen4-Mar-15 9:29 
GeneralRe: Running forms in a thread in .NET Pin
landersohn694-Mar-15 10:53
landersohn694-Mar-15 10:53 
GeneralRe: Running forms in a thread in .NET Pin
Eddy Vluggen4-Mar-15 11:12
professionalEddy Vluggen4-Mar-15 11:12 
GeneralRe: Running forms in a thread in .NET Pin
landersohn696-Mar-15 18:34
landersohn696-Mar-15 18:34 
GeneralRe: Running forms in a thread in .NET Pin
Mycroft Holmes4-Mar-15 15:57
professionalMycroft Holmes4-Mar-15 15:57 
AnswerRe: Running forms in a thread in .NET Pin
Dave Kreskowiak4-Mar-15 9:10
mveDave Kreskowiak4-Mar-15 9:10 
QuestionMessage Closed Pin
4-Mar-15 2:36
Member 114792894-Mar-15 2:36 
AnswerRe: vehicule detection emgucv (open cv) Pin
OriginalGriff4-Mar-15 2:42
mveOriginalGriff4-Mar-15 2:42 
Questionclient -> server -> client Pin
Super Lloyd3-Mar-15 19:03
Super Lloyd3-Mar-15 19:03 
AnswerRe: client -> server -> client Pin
Gerry Schmitz4-Mar-15 3:25
mveGerry Schmitz4-Mar-15 3:25 
GeneralRe: client -> server -> client Pin
Pete O'Hanlon4-Mar-15 4:11
mvePete O'Hanlon4-Mar-15 4:11 
GeneralRe: client -> server -> client Pin
Gerry Schmitz4-Mar-15 11:22
mveGerry Schmitz4-Mar-15 11:22 
QuestionC# Packet Loss Pin
Member 114965273-Mar-15 18:20
Member 114965273-Mar-15 18:20 
AnswerRe: C# Packet Loss Pin
Gerry Schmitz4-Mar-15 3:49
mveGerry Schmitz4-Mar-15 3:49 
GeneralRe: C# Packet Loss Pin
Member 114965274-Mar-15 4:59
Member 114965274-Mar-15 4:59 

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.