Visual Basic 2008 – combo box and text file. How to display relevant data

Tags:
ComboBox
VB 2008
Visual Basic 2008
Visual Studio 2008
I have a text file with a hundred employees.  The text has been read in line by line.

I have set up two function to getemployeename and getdepartment.

I have a combo box with departments

When user selects relevant department I want the corresponding names to display in a messagebox

I can't figure out how to do this.  Would anybody be able to help me out??? 

 



Software/Hardware used:
Visual Studio 2008 Express edition

Answer Wiki

Thanks. We'll let you know when a new response is added.

Thank you for visiting ITKE.

We are happy to help you with solving specific IT questions, but need as
much information as possible to do so. Let us know about the problem you
are trying to solve, how you are approaching it and what work you’ve
done so far, and we can help guide you in the right direction.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    This sounds like a homework assignment. If it is not, why are you using a text file and not a database ?
    69,920 pointsBadges:
    report
  • Newbieatprogramming
    Was just looking for some guidance after days of trying to solve it. And no its not a homework assignment. Thats funny - I haven't done homework in years. I'm in my 40s. I'm learning it in work - am being trained in with text files first and trying to learn it myself as well. I did it years ago but have forgotten most of it.
    15 pointsBadges:
    report
  • carlosdl
    Ok. As I understand, you have successfully wrote the code to read the text file. Is that right ? Are you storing the text lines in memory variables, or maybe an array ? How are the employee names and departments separated in the text file ? Please provide more details.
    69,920 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following