We help IT Professionals succeed at work.

manipulating combobox

raja20
raja20 asked
on
Medium Priority
267 Views
Last Modified: 2010-04-23

Actually, i need to do a program using VB.NET where when the user clicks the selected items in the combobox, it will display the contets from a text file that is related to the selected item inside the combobox. The display will done in either a textbox or label. I am confused whether to use a database to store the information to be retrieved or just append a path.

For example,

the combo box contains

About LLE
LLE Algorithm
LLE source codes

The user clicks "About LLE", then when he hit the display button, the information about LLE will appear in a label or textbox.

Thanks in advanced.
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
What is the question that you are asking?  How to read text from a file?

Dim reader As New IO.StreamReader(path)
Dim fileText As String = reader.ReadToEnd()
reader.Close()

Bob

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.