How do I create a thread that makes changes to a label in my CLR application? -


i apologize if question comprehensive:

i have experience visual c++ , qt , know how in environments sake of team, need make clr application.

i have clr application follows:

clr application label element. (unable post images due new account).

my requirement:

  • i want create thread changes "status here" label display simple string of data.
  • the reason is: have c++ based client application sends data through named pipe application.
  • my goal make separate thread gui form blocking connects , reads client , displays data in tabular form in form.
  • what want know how can modify items in form after receiving data pipe
  • what kind of threads should use, should use clr thread pool or create thread using system::threading follows:

    threadstart^ ptoperation = gcnew threadstart(startpipe); thread^ pipethread = gcnew thread(ptoperation); pipethread->start(); 

where startpipe operation going perform functions of creating server pipe, connecting client, doing reads , modifying gui elements. clr have restrictions modifying main form elements thread qt does. (i had implement signal/slot system that).

my idea: can pass argument thread function pointer forms label , change it's properties inside thread function?

i looked begin invoke , seems solution of now. if else has suggestions, please help.

http://www.codeproject.com/articles/10311/what-s-up-with-begininvoke


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -