ComboBox not displaying anything

3 posts, 0 answers
  1. Edward
    Edward  avatar
    32 posts
    Member since:
    Jan 2008

    Posted 03 Jun 2008 Link to this post

    I have a form with a few ComboBox inside.

    Program.cs look like this:

    while (true) {
      MainForm main = new MainForm();
      Application.Run(main);
      if (!main.RunAgain) // a boolean property in MainForm
        return;
    }

    Basically for the first time, it run properly.  However if I run the form the second time (by setting RunAgain to true), then the ComboBox will appear empty (empty as if nothing inside).  If you click on the box 1 or 2 more times, then the content will reappear.
  2. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 06 Jun 2008 Link to this post

    Hello Edward ,

    I was not able to reproduce the described behavior. Please open a new support ticket and send me a sample application which demonstrates it. This will allow me to address any potential issue further.

    I am looking forward to your response.

    All the best,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Angel
    Admin
    Angel avatar
    121 posts

    Posted 06 Jun 2008 Link to this post

    Hello Edward ,

    This is a quick follow-up.

    The layout queue for the UI elements was destroyed in the ApplicationExit event but was not recreated if a new Application is run in the same process. By calling Application.Run() more than once, you trigger that behavior.

    The issue has just been addressed and will be available in the next release. However, I cannot give you a workaround at this time.

    Your points have been updated for reporting this issue. If you have further questions, contact me again.

    Kind regards,
    Angel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top