all groups > dotnet academic > april 2005 >
You're in the

dotnet academic

group:

combo box


combo box Bolo
4/25/2005 6:49:10 PM
dotnet academic: hi there

how can i load a text file into a combo

regards

--
--------------------------------------------
Re: combo box Peter van der Goes
4/25/2005 9:24:38 PM

[quoted text, click to view]

Depends on the content and arrangement of your text file.
The .NET ComboBox class includes an items collection into which you can add
the list of items to display. To add the items programmatically, use the
Items collection Add() method.

cboMyBox.Items.Add("A line of text")

for example.
You'll need to break up your text file into strings to use as arguments to
the Add() method.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.

Re: combo box Bolo
4/25/2005 11:31:02 PM

Thanks Peter,

i have found the answer in 101vbnetsample. it does exactly what i want.

Jules

[quoted text, click to view]
AddThis Social Bookmark Button