Answer Posted / Vivek Sachan
To make a drop-down list (like a TComboBox) appear faster in Delphi, you can reduce its number of items or use a TStringList with the AutoSizer property set to False. Here is an example:nn```delphinvarn myStrings: TStringList;nbeginn SetLength(myStrings, 1000); // Allocate space for many itemsn myStrings.AutoSizer := False; // Disable auto-sizing to speed up renderingnn With TComboBox.Create(Self) don Assign(Items, myStrings); // Populate the ComboBox with the StringListnend;n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to Print in Delphi without using the TPrinter Unit ?
How to Retrieve the line number that a memo's cursor is on?
How can one prevent a TForm from being moved or resized?
How to Retrieving the program that is associated with a given extension?
How to Get the time and date in Universal Time ?
How to Create resource files?
How to Determine the last access time of a given file ?
How to Save a QuickReport custom preview to text?
How to Change the default width/height of the editor?
How to Flush binary file from disk cache to disk ?
How to Remove drives listed in a TDriveComboBox ?
How to Change the owner of a component at runtime ?