G
Guest
When setting up an input box in VB .Net to get a SQL user name for a SQL
connection, if the enter key is pressed on the input box (regardless whether
text has been entered) the program crashes on opening the SQL connection.
The program works fine if the OK button is pressed with the mouse. (A blank
response causes NT authentication, instead of SQL authentication). I have
written the code with both a SQLClient and using ADO, and it fails the same
way with either. What is happening?
connection, if the enter key is pressed on the input box (regardless whether
text has been entered) the program crashes on opening the SQL connection.
The program works fine if the OK button is pressed with the mouse. (A blank
response causes NT authentication, instead of SQL authentication). I have
written the code with both a SQLClient and using ADO, and it fails the same
way with either. What is happening?