Example Codes

My .Net Blog — posts in this category.

Example Codes

Bolded the dates in MonthCalendar

I am writing a simple diary application. I am using a monthcalendar control to select the date to load the diary. I need the control to display the date in…

Read more
Example Codes

Regular Expression Validation

I like to use regular expression validation. That is simple. You only need to use:using System.Text.RegularExpressions For the numeric value validation: Regex…

Read more
Example Codes

String.Format- a comma in each thousand

I have tried to Convert.ToString to convert int into a format a comma in each thousand. I am not successfully. Well, because I went to a wrong way. I shoulduse…

Read more
Example Codes

Network Tester

This afternoon, I was practicing Socket Programming in C#. That is the reason I wrote this program. http://www.itblogs.info/download/NetworkTester.zip This…

Read more
Example Codes

CryptoStream

I have done a google search on crypto topic. Some examples are saying to CryptoStream(outStream,…

Read more
Example Codes

Spring .Net Example

I did an example to get an object from Spring Context. The key lines of code: IApplicationContext ctx = ContextRegistry.GetContext(); WindowConfig config =…

Read more