Updating textbox from BackgroundWorker?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • planetthoughtful

    Updating textbox from BackgroundWorker?

    Hi All,

    I have a Windows Form app that does some work in a BackgroundWorke r.
    I'd like to append information to a textbox from within the
    BackgroundWorke r but it keeps telling me that I can't do this across
    threads.

    Can anyone give me some help in figuring out how (or if) this can be
    done? I just simply want to append text to txtDisplayMessa ges.

    Any help appreciated!

    Much warmth,

    pt

  • Cryptik

    #2
    Re: Updating textbox from BackgroundWorke r?

    I have the solution on my website:

    Modify GUI Objects from a different thread.


    Kelly S. Elias
    Webmaster
    DevDistrict - C# Code Library



    planetthoughtfu l wrote:
    Hi All,
    >
    I have a Windows Form app that does some work in a BackgroundWorke r.
    I'd like to append information to a textbox from within the
    BackgroundWorke r but it keeps telling me that I can't do this across
    threads.
    >
    Can anyone give me some help in figuring out how (or if) this can be
    done? I just simply want to append text to txtDisplayMessa ges.
    >
    Any help appreciated!
    >
    Much warmth,
    >
    pt

    Comment

    Working...