Ignoring Characters in a TexBox

The code below shows you how to ignore all input unless it's a number:private void searchText_KeyPress(object sender, KeyPressEventArgs e){ if (e.KeyChar != 8) {  if (char.IsNumber(e.KeyChar) == false)  {   e.Handled = true; }} I allow the backspace keypress by checking for character 8. You can easily modify this code to suit your needs.   Tip Submitted By: David McCarter

Microsoft Releases the Visual Basic .NET Power Pack

The Power Pack controls consist of: BlendPanel. This provides a background for a form where the color fades from one shade to another. UtilityToolbar. This is a toolbar whose look and feel is similar to the Internet Explorer toolbar. ImageButton. This is a button that displays a graphic over a transparent background. NotificationWindow. This displays … Continue reading Microsoft Releases the Visual Basic .NET Power Pack