Hey guys,
I can't call a form's
Show()/ShowDialog()
within a thread!!!
I searched google, but i couldn't find something useful for me?
Can any one give me some guide code in order to implement this calling??
Thanks in advance
----------
some explanation:
well i'm trying to write a ' Processor Manager ' to test my skills and in here there are sometimes which in some circumstance program have to pop up some form in order to notify user the things happened in program's background, or ask permission to do something with some unwanted/violent process(es) in processor .....
every each of these performance happens in threads almost in 4 threads, as i programmed till now ...
the processes validation checking runs through program's run time in threads ....
in orther to handle this formming i create a ' FormMonitoring ' Class, which pass a form object into this, and this class queue this form and then show this form, this was my first design in order to handle what i explained before!
well there are 2 options for me :
1) change my formming strategy : i have not any other idea about this!!!??:confused:[Any idea?]
2) call forms in the thread :((
i also tried invoke the form but the result is same, the windows cames up, but the controls never create!!
any idea about this problems, this is first time i encounter with this kind of problem??:~ :doh:
the following picture is the result when i try to show a form![the result is ALMOST same when i try to invoke the form!]
A screen shot[
^]