This is a migrated thread and some comments may be shown as answers.

ComboBox not displaying anything

2 Answers 28 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Edward
Top achievements
Rank 1
Edward asked on 03 Jun 2008, 08:24 PM
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 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Jun 2008, 12:28 PM
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
0
Angel
Telerik team
answered on 06 Jun 2008, 03:04 PM
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
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Edward
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Angel
Telerik team
Share this question
or