Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically changing the items in a list box

Status
Not open for further replies.

nieldy

Programmer
Oct 19, 2003
1
AU
In my install I search the user's local drives for all occurances of an executable file and then I want to give them the option of selecting a file to upgrade. Does anyone know a way I can set the items in a listbox depending on the files found in the search?
 
Create a custom dialogue with a combo box. In the properties dialog box for your combo box control, insert a variable into the text box for the "Combo Box Text" property, e.g. %ITEMSFORCOMBO% . Then, before presenting the custom dialogue, set ITEMSFORCOMBO to contain the desired items. Each item must be separated by a %CRLF%. For example, to present a list of exe files to upgrade, set
%ITEMSFORCOMBO% to
%FIRSTEXE%%CRLF%%SECONDEXE%%CRLF%
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top