Click here to Skip to main content
15,911,481 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to check if user doesn't select anything in combobox. Pin
phil.o27-Feb-18 5:56
professionalphil.o27-Feb-18 5:56 
GeneralRe: How to check if user doesn't select anything in combobox. Pin
hmanhha27-Feb-18 15:04
hmanhha27-Feb-18 15:04 
AnswerRe: How to check if user doesn't select anything in combobox. Pin
Ralf Meier28-Feb-18 0:44
mveRalf Meier28-Feb-18 0:44 
GeneralRe: How to check if user doesn't select anything in combobox. Pin
hmanhha28-Feb-18 22:28
hmanhha28-Feb-18 22:28 
GeneralRe: How to check if user doesn't select anything in combobox. Pin
Ralf Meier1-Mar-18 0:22
mveRalf Meier1-Mar-18 0:22 
GeneralRe: How to check if user doesn't select anything in combobox. Pin
hmanhha1-Mar-18 14:27
hmanhha1-Mar-18 14:27 
GeneralRe: How to check if user doesn't select anything in combobox. Pin
Dave Kreskowiak1-Mar-18 16:14
mveDave Kreskowiak1-Mar-18 16:14 
GeneralRe: How to check if user doesn't select anything in combobox. Pin
Ralf Meier1-Mar-18 21:50
mveRalf Meier1-Mar-18 21:50 
I think you read what Dave has written. My answer is the same - sorry ...

Back to your Requirement :
You have some ComboBoxes, ListBoxes and/or TextBoxes on your Form. All of them are assigned with some values. Your problem now (as I understood) is that the User has made some inputs but sometimes he forgot (or not realize) to make a selection on the Combobox. By default your Combobox has not SelectedItem= -1 - it has SelectedItem=0 (and this could be a valid selection).
So ... what could you do now ?
One possibility is to force the user to make a selection or to touch the Combobox.
The Suggestion I gave you is to touch the Combobox. But perhaps that doesn't matches to your Requirement (if you coded I in the right way it will work).
So we could change something : the content of your Combobox don't have a valid data on Item=0. This could be done if you first insert a "-" as Item and then the correct data.
Perhaps you think about that ...
AnswerRe: How to check if user doesn't select anything in combobox. Pin
Richard Andrew x642-Mar-18 1:47
professionalRichard Andrew x642-Mar-18 1:47 
AnswerRe: How to check if user doesn't select anything in combobox. Pin
Alan Burkhart2-Mar-18 6:26
Alan Burkhart2-Mar-18 6:26 
QuestionInvocar StatusStrip desde otro form Pin
Edgardo Martinez26-Feb-18 13:35
Edgardo Martinez26-Feb-18 13:35 
AnswerRe: Invocar StatusStrip desde otro form Pin
Eddy Vluggen27-Feb-18 3:10
professionalEddy Vluggen27-Feb-18 3:10 
QuestionGet Databack from combobox. Pin
hmanhha26-Feb-18 7:30
hmanhha26-Feb-18 7:30 
AnswerRe: Get Databack from combobox. Pin
Richard Deeming26-Feb-18 7:42
mveRichard Deeming26-Feb-18 7:42 
AnswerRe: Get Databack from combobox. Pin
Member 834559927-Feb-18 3:56
Member 834559927-Feb-18 3:56 
GeneralRe: Get Databack from combobox. Pin
Dave Kreskowiak27-Feb-18 5:35
mveDave Kreskowiak27-Feb-18 5:35 
SuggestionRe: Get Databack from combobox. Pin
Richard Deeming27-Feb-18 6:31
mveRichard Deeming27-Feb-18 6:31 
QuestionFatal error encountered during command execution Pin
duhoky26-Feb-18 1:14
duhoky26-Feb-18 1:14 
GeneralRe: Fatal error encountered during command execution Pin
Richard MacCutchan26-Feb-18 1:35
mveRichard MacCutchan26-Feb-18 1:35 
AnswerRe: Fatal error encountered during command execution Pin
duhoky26-Feb-18 1:51
duhoky26-Feb-18 1:51 
QuestionI am trying to port this code from VBScript to C# Pin
Steve Messer25-Feb-18 14:48
Steve Messer25-Feb-18 14:48 
AnswerRe: I am trying to port this code from VBScript to C# Pin
Dave Kreskowiak25-Feb-18 16:05
mveDave Kreskowiak25-Feb-18 16:05 
GeneralRe: I am trying to port this code from VBScript to C# Pin
Steve Messer25-Feb-18 18:18
Steve Messer25-Feb-18 18:18 
GeneralRe: I am trying to port this code from VBScript to C# Pin
Mycroft Holmes25-Feb-18 20:27
professionalMycroft Holmes25-Feb-18 20:27 
GeneralRe: I am trying to port this code from VBScript to C# Pin
Richard MacCutchan25-Feb-18 22:09
mveRichard MacCutchan25-Feb-18 22:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.