Only accept letters, numbers and underscores in a textbox

Use regex, I think you can try the aia from this thread