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!

Adding a multiselect list box at runtime?

Status
Not open for further replies.

Jerrycurl

Programmer
Aug 4, 1999
85
US
Is there a way to add a listbox at runtime that has multiselect capabilities? The multiselect property is read-only at run time, and it defaults to single select. I'm probably stuck with using a 3rd party control. Thanks for any help.
 
Have a multi-select listbox control array - with just the one element - zero. Make it invisible if you like. If you're only going to need the one listbox at run-time you can just show this one and it doesn't need to be a control array.<br>
<br>
If you don't know how many you will need:<br>
<br>
say you called the initial listbox 'mslb(0)'<br>
<br>
you could then say &quot;Load mslb(1)&quot;, and &quot;Load mslb(2&quot; etc<br>
<br>
You can have as many as you need then.<br>
<br>
-ml<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top