I changed the Text property to EmployerName. There is no code behind the selection/index changed event of the combobox. Changing the Text property still causes the program to hang.
Main Topics
Browse All TopicsI'm using Visual Studio 8 to develop my Windows Form Application using VB.Net. I have 2 tables, Employees and Employer. The Employer has a list of Employers. The Employees have a list of employees. The Employees table has a field, EmployerID, that maps to the Employer table.
I've created a form for the user to edit the employee information. I dragged the EmployerID field onto the form and set the bindings as shown in the attached graphic, EmployerID ComboBox. THe EmployerID ComboBox Properties are shown in the attached graphic, EmployerID ComboBox Properties.
When the form is displayed, the employer name is displayed (not the employerid) which is what I want. However, if I try and change the employer name, my form hangs. I can't move from the field and the form does not respond. I have to stop debugging.
I can't figure out what I'm doing wrong. I want the Employer Name to display on the form based on the EmployerID in the Employee record. I want to be able to change the Employer Name from choosing a name from the list and then save the EmployerID in the Employee record.
Any help would be greatly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: CodeCruiserPosted on 2009-08-24 at 00:42:00ID: 25166222
I am not sure why it hangs but the Text property of the combobox is set to be the EmployerID rather than EmployerName. Is there any code behind the selection/index changed event of the combobox?