martindeveloper 0 Newbie Poster

Hello.

I have simple question. How can I access to ListBox in other thread and add items?

I have situation : Download JSON data by WebClient and add handler to event DownloadStringCompleted. From DownloadStringCompletedEventArgs I get the JSON respond and by JObject.Parse() (Newtonsoft.Json.Linq) create a object. From that object I get some data (new DataItem - my class) and I will put them to List<DataItem>. And now I want to "get current instance of app" and add data to ListBox.

How can I do that please?

Thank you for respond.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.