Firstly, you shouldn't do it like that - it is an invitation to an SQL Injection attack, which can damage or destroy your database. Use Parametrized queries instead:
Dim del As new SqlCommand("DELETE FROM members WHERE name=@NM", dbcon)
del.Parameters.AddWithValue("@NM", textbox1.Text)
Secondly, you may find your problem disappears as well!