Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6327655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:19:07+00:00 2026-05-24T17:19:07+00:00

Background This is a Compact Framework 3.5 Forms application. In the process of showing

  • 0

Background

This is a Compact Framework 3.5 Forms application. In the process of showing a form, static (this means controls placed in the form as is) controls are populated in the user interface thread, while ones which may need loading data, are populated in a separate thread from the user interface one.

I’m using Control.Invoke in order to synchronize populating controls with data in the user interface thread.

Note user interface doesn’t get stuck, and it’s running as expected.

Problem

Controls like ListBox, even if they’ve items, these aren’t shown in the user interface.

Whenever an item is added, code calls ListBox.Update method in order to redraw it.


Will you give me some hint about what’s happening?

NOTE: I could paste here some code, but I find that useless, because it’s just about starting a thread by creating a one (new Thread(...).Start()) and, during this thread’s execution, I call some form Invoke method.

Thank you in advance for your suggestions and time.


UPDATE
I got it working if I create a control like ListBox in the synced with UI thread action using Control.Invoke. Anyway, I’ve still need to solve that when control is created using the designer, because it’s easier to place controls in that way. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:19:07+00:00Added an answer on May 24, 2026 at 5:19 pm

    I’ve noticed lots of controls that get created in a separate thread behave peculiarly or vanish altogether when they are returned to the main thread of execution. Perhaps they become orphan or …something.

    Here’s what has worked best for me: Place the controls on the form (set Visible=false, Width=0, etc., if you don’t want to see them) and just pass the data back from your thread. When the data comes back, populate your controls with the data. Typically, I will create a class that contains the returned values that I am looking for, and return an instance of the class.

    That said, I must tip my hat and say Chris Tacke does know what he’s doing. I’ve taken guidance from him since XP came out and I was using Outlook Express to read from Microsoft’s Newsgroups.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a Windows Mobile 5.0 and above application with .Net Compact Framework 2.0
I´m writing a Compact Framework Application for Windows Mobile 6.5. The Application will be
I'd like my compact framework application to show a notification bubble ONLY when it's
I've searched for the solution to change the background color on the Compact Framework's
We have been successfully using protobuf-net v1 in a compact framework application to handle
I am having an issue where I have a Windows CE compact framework Application
Background This question is in two parts. I have a one-way WCF operation hosted
Background: This question relates to versions of Delphi below 2009 (ie without Unicode support
Background this post explains how one can consume extension methods in Powershell http://community.bartdesmet.net/blogs/bart/archive/2007/09/06/extension-methods-in-windows-powershell.aspx Compare
I have this background, the css code is: body { background: #FFF url('images/bg.png') no-repeat

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.