about multithreading

  • Thread starter Thread starter Ravindra
  • Start date Start date
R

Ravindra

Hi all,
i am using multthreading for string parsing.When i bind the data to
datagrid, all the controls are visible false.I could able to get the data,
but not displaying.Also when i say form.visible to true, then 2 forms are
dispalying with the same pointers.So please help me in solving this issue.
 
Ravindra said:
i am using multthreading for string parsing.When i bind the data to
datagrid, all the controls are visible false.I could able to get the data,
but not displaying.Also when i say form.visible to true, then 2 forms are
dispalying with the same pointers.So please help me in solving this issue.

Instead of accessing forms and controls from another thread, use
'Control.Invoke' to access them:

Multithreading in Windows Forms applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=multithreading&lang=en>
 
Ravindra,

If using Control.Invoke doesn't help you probably will need to post some
sample code in order to see where the problem could be; your explanation is
not clear enough.
 
Back
Top