Textbox, combobox control

I have questions for a C# windows form application.

  1. How can I put control over a textbox so that I can type only texts in the textbox when the input property is set to text only and type only numbers (int or float or uint) when the input property is set to numbers only and get the alert that the ( Only texts/ numbers)? I want to know the property name of the textbox in visual studio 2005/2008 also the alert setting process.

  2. Suppose I use a combobox which label is Sex and the items of the combobox are Male and Female. How can I set the Male item default selected?

I have not worked with this in ages, so dnt no if things changed, but as far as I know there is no built in function for this.

  1. In the past I wrote my on class that inherits from TextBox and called it NumericTextBox, and then use the keypress and keycodes to filter out unwanted text.

  2. Just send the selected index to 0 or 1.