Visual Basic 2008 – combo box and text file. How to display relevant data
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
ASKED: January 8, 2011  12:33 AM
UPDATED: January 10, 2011  9:33 PM

Answer Wiki:
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.
Last Wiki Answer Submitted:  May 14, 2013  8:21 pm  by  Chris Leonard   2,620 pts.
All Answer Wiki Contributors:  Chris Leonard   2,620 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

This sounds like a homework assignment.

If it is not, why are you using a text file and not a database ?

 63,535 pts.

 

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.


 

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.

 63,535 pts.