C# Help - C# Community and Information

Masked Edit Control in C# using Regex

May 19th, 2007 in ASP.NET by admin

By Michael J. Bullard

We programmed a masked textbox control with C# that will convert the mask into a regular expression for each character in the field. It is designed to accept a user defined mask or a regular expression that defines each character in the field. If you pass it the mask as a string using the characters listed below, it will build the regular expression for you. It then loads the regular expression into an array which is used to validate and control the behavior of the field. There is an error provider message and a tooltip associated with the control. Read more…

C# Strings and Regular Expressions

May 12th, 2007 in C# Language by admin

3.0. Introduction

It would be very rare to create an entireapplication without using a single string. Strings help make sense ofthe seemingly random jumble of binary data that applications use toaccomplish a task. They appear in all facets of application developmentfrom the smallest system utility to large enterprise services. Theirvalue is so apparent that more and more connected systems are leaningtoward string data within their communication protocols by utilizingthe Extensible Markup Language (XML) rather than the more cumbersometraditional transmission of large binary data. This book uses stringsextensively to examine the internal contents of variables and theresults of program flow using Framework Class Libraries (FCL) methodssuch as Console.WriteLine and MessageBox.Show. Read more…

Regular Expressions in C#

December 8th, 2005 in C# Language by admin

 
Read more…