Add the KeyPress event handler to your textbox:
myTextBox.KeyPress += myTextBox_KeyPress;
private void myTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
char pressed = e.KeyChar;
...
}
You can then do what you like to access your DB and get results within the handler.