Here's a good place to start.

One problem I saw was a missing ending quote.
Code:
myCommand.CommandText = "SELECT name FROM user WHERE name = '" + txtUser.Text & "'"
Also instead of using txtUser.Text you should use parameters. If will save you both time and aggravation.