public textbox1_KeyPress(object sender,KeyPressEventArgs e)
{
e.KeyChar=char.ToUpper(e.KeyChar);
}
if you want to do any validations of the pressed key,you can do it in keydown event and pass a boolean value to keypress event,based on the bool value you can perform the operation you need
Hope it helps!!