Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to Make the drop-down list appear faster?

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


Please Help Members By Posting Answers For Below Questions

How to Print in Delphi without using the TPrinter Unit ?

1896


How to Retrieve the line number that a memo's cursor is on?

1978


How can one prevent a TForm from being moved or resized?

1759


How to Retrieving the program that is associated with a given extension?

1689


How to Get the time and date in Universal Time ?

1750


How to Create resource files?

1642


How to Determine the last access time of a given file ?

1820


How to Save a QuickReport custom preview to text?

3381


How to Change the default width/height of the editor?

1891


How to Flush binary file from disk cache to disk ?

2043


How to Remove drives listed in a TDriveComboBox ?

1937


How to Change the owner of a component at runtime ?

1916