why didn't you search on google???
just use textbox value(textbox1.text.tostring()) as a sqlquery and run it, get the output and bind to listbox.thats all.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)