Vb net combo box validating
In an episode of "Kung Fu" with David Carradine (many years ago) his "master" said "For every good turn given, do two in return. Joe “Theory is when you know something, but it doesn't work.In this way, good deeds travel outwards like the ripples created on a pond by a single stone" (or words to that effect). Practice is when something works, but you don't know why.
The List Box portion of the Combo Box remains hidden until the Combo Box receives focus and the user clicks the down arrow on the text box.
What happens is that if i don enter any record and tab out then it takes the first record .
If i enter a wrong record and tab out then also it takes the first (and only record) if( !
I shall read about Validating event handlers and e.cancel and get back to u about this one. If your function is being called from the Validating event handler then it needs to return a boolean value that indciates whether the control passed validation or not.
Your code would look something like this: Notice that if the combo box passes validation the function returns True and e.