Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > how can i check that the textbox value is string or not?
 

how can i check that the textbox value is string or not?

how can i checkthe textbox value is string or not?

if i enter integer then message tell that this is a string

thanks

Ather.Abbas  Saturday, October 21, 2006 6:55 AM



string pattern = "[^A-Z0-9]";
bool resultado = !Regex.IsMatch(Texto, pattern, RegexOptions.IgnoreCase);


Using regular expresions, try it.

Regards.

vtortola  Saturday, October 21, 2006 9:54 AM

You can use google to search for other answers

Custom Search

More Threads

• Re: error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
• Connection Strings in Machine.Config and Table Adapter?
• DataGridView Does Not Show Vertical ScrollBar
• How to draw icons in DataGrid in Area of row headers in Framework 2?
• sorting alphanumerics in datagridview c# windows form
• Hello all, Three tier example
• BindingSource.Find failed when binding to DataRelation Child table
• how to display a row of a datagridview control in the screen?
• SSL applied to consuming web services
• creating a new row with DataView