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

C#

 
AnswerRe: sscanf equivalent in C#? Pin
David Stone30-Nov-02 18:22
sitebuilderDavid Stone30-Nov-02 18:22 
AnswerRe: sscanf equivalent in C#? Pin
Nick Parker30-Nov-02 18:37
protectorNick Parker30-Nov-02 18:37 
GeneralRe: sscanf equivalent in C#? Pin
David Stone30-Nov-02 19:13
sitebuilderDavid Stone30-Nov-02 19:13 
GeneralRe: sscanf equivalent in C#? Pin
roybrew1-Dec-02 5:24
roybrew1-Dec-02 5:24 
GeneralRe: sscanf equivalent in C#? Pin
Shaun Wilde2-Dec-02 4:24
Shaun Wilde2-Dec-02 4:24 
GeneralNet Send Pin
Bugoy29-Nov-02 19:03
Bugoy29-Nov-02 19:03 
GeneralRe: Net Send Pin
Tomtomm29-Nov-02 23:39
Tomtomm29-Nov-02 23:39 
GeneralAbout threads and forms... Pin
GriffonRL29-Nov-02 6:16
GriffonRL29-Nov-02 6:16 
Hello,

I wrote a program who is not UI dependent. I have all my program logic in a class and I raise some events for any potential frontend.
I can then create a console application or a Windows form application using the same program logic.
The frontend just run a thread using the run() function of my main class (UI independent) which do all the job.
This main class also creates internally several threads performing various tasks in parallel. Since all this threads are just pure computation I have no problems.
But I recently wanted to create forms in some of these internal threads running in parallel and I have been unsuccessful for far Frown | :(
What happens is that forms get created but are not responsive at all and the internal threads get stuck. How can I create these forms and make them run independently in each thread ?

Here is schema:

Frontend (Console or Form, main thread)
|
|
Main class (running in a thread)
| | | | |
| | | | |
Child threads (computation)
x x x x x <-- child threads can not work with forms
x x x x x <-- how to call functions in those forms ?
Child threads forms

Any idea ?


R. LOPES
Just programmer.
GeneralRe: About threads and forms... Pin
leppie29-Nov-02 9:09
leppie29-Nov-02 9:09 
GeneralRe: About threads and forms... Pin
GriffonRL29-Nov-02 9:36
GriffonRL29-Nov-02 9:36 
GeneralRe: About threads and forms... Pin
leppie29-Nov-02 9:51
leppie29-Nov-02 9:51 
GeneralRe: About threads and forms... Pin
GriffonRL29-Nov-02 10:01
GriffonRL29-Nov-02 10:01 
GeneralRe: About threads and forms... Pin
leppie29-Nov-02 10:20
leppie29-Nov-02 10:20 
QuestionIs it possible to use webbrowser control outside a form ? Pin
GriffonRL29-Nov-02 6:00
GriffonRL29-Nov-02 6:00 
AnswerRe: Is it possible to use webbrowser control outside a form ? Pin
Stephane Rodriguez.29-Nov-02 6:17
Stephane Rodriguez.29-Nov-02 6:17 
GeneralRe: Is it possible to use webbrowser control outside a form ? Pin
GriffonRL29-Nov-02 6:45
GriffonRL29-Nov-02 6:45 
GeneralRe: Is it possible to use webbrowser control outside a form ? Pin
Stephane Rodriguez.29-Nov-02 6:48
Stephane Rodriguez.29-Nov-02 6:48 
GeneralRe: Is it possible to use webbrowser control outside a form ? Pin
GriffonRL29-Nov-02 6:53
GriffonRL29-Nov-02 6:53 
GeneralRe: Is it possible to use webbrowser control outside a form ? Pin
Stephane Rodriguez.29-Nov-02 7:09
Stephane Rodriguez.29-Nov-02 7:09 
GeneralRe: Is it possible to use webbrowser control outside a form ? Pin
GriffonRL29-Nov-02 9:48
GriffonRL29-Nov-02 9:48 
QuestionUnmanaged Interface Declaration in C# ??? Pin
Member 8183729-Nov-02 3:44
Member 8183729-Nov-02 3:44 
GeneralShell context menu Pin
Tomtomm29-Nov-02 3:43
Tomtomm29-Nov-02 3:43 
GeneralRe: Shell context menu Pin
Kannan Kalyanaraman2-Dec-02 2:53
Kannan Kalyanaraman2-Dec-02 2:53 
GeneralRe: Shell context menu Pin
Shaun Wilde2-Dec-02 4:28
Shaun Wilde2-Dec-02 4:28 
GeneralLeave_event not fired on PropertyGrids Pin
Martin D29-Nov-02 0:08
Martin D29-Nov-02 0:08 

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.