Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force list box selection

Status
Not open for further replies.

pentegr

Programmer
Sep 28, 2006
20
ZA
I have a list box on a form which I want to force users to make a selection from in order to continue a process.

Example:user must make a selection from ProdList and then hit a "Display" button. This will result in a function being called that will display information about the product selected.
If no product is selected (ProdList.SelectedIndex = -1) a message should be displayed prompting user to select a product from the list. The prompt should display until user makes a selection from the list

Short of reloading the form from scratch each time they don't make a selection, anyone got a suggested shortcut?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top