HighTechTalks DotNet Forums  

combo box

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss combo box in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Bolo
 
Posts: n/a

Default combo box - 04-25-2005 , 09:49 PM






hi there

how can i load a text file into a combo

regards

--
--------------------------------------------
giving up is not an option

Reply With Quote
  #2  
Old   
Peter van der Goes
 
Posts: n/a

Default Re: combo box - 04-25-2005 , 10:24 PM







"Bolo" <Bolo (AT) discussions (DOT) microsoft.com> wrote

Quote:
hi there

how can i load a text file into a combo

regards

--
--------------------------------------------
giving up is not an option
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.




Reply With Quote
  #3  
Old   
Bolo
 
Posts: n/a

Default Re: combo box - 04-26-2005 , 02:31 AM




Thanks Peter,

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

Jules

"Peter van der Goes" wrote:

Quote:
"Bolo" <Bolo (AT) discussions (DOT) microsoft.com> wrote in message
news:7810764C-C3FA-49D1-914B-CC8BE7DC66BD (AT) microsoft (DOT) com...
hi there

how can i load a text file into a combo

regards

--
--------------------------------------------
giving up is not an option

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.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.