Csharp-examples - csharp-examples.net - C# Examples

Latest News:

String To Enum Conversion [C#] 30 Nov -0001 | 12:00 am

This example shows how to convert enum values to string and reversely.

Select XML Nodes by Attribute Value [C#] 30 Nov -0001 | 12:00 am

This example shows how to select nodes from XML document by attribute value. Use method XmlNode.SelectNodes to get list of nodes selected by the XPath expression.

Separator Line on Form [C#] 30 Nov -0001 | 12:00 am

This example shows how to create a bevel line in Windows Forms. This line can be used as a visual separator of controls on a form.

Read-only Wrapper for a Collection [C#] 30 Nov -0001 | 12:00 am

This example shows how to easily create a read-only wrapper for a collection. This is useful if you have a private collection (with full access) and you need to show it as a read-only collection for t...

IFormatProvider for Numbers [C#] 30 Nov -0001 | 12:00 am

This example shows how to convert float to string and string to float using IFormatProvider. To get IFormatProvider you need to get CultureInfo instance first.

Culture Names [C#] 30 Nov -0001 | 12:00 am

This example shows how to get all culture names in the .NET Framework. Use static method CultureInfo.GetCultures. To get associated specific culture use static method CultureInfo.CreateSpecificCulture...

Set DoubleBuffered Property [C#] 30 Nov -0001 | 12:00 am

This example shows how to set protected property Control.DoubleBuffered to true. This is useful, if you want to avoid flickering of controls such as ListView (when updating) or Panel (when you draw on...

DataView RowFilter Syntax [C#] 30 Nov -0001 | 12:00 am

This example describes syntax of DataView.RowFilter expression. It shows how to correctly build expression string (without "SQL injection") using methods to escape values.

String Format for DateTime [C#] 30 Nov -0001 | 12:00 am

This example shows how to format DateTime using String.Format method. All formatting can be done also using DateTime.ToString method.

Topmost Form at Application Level [C#] 30 Nov -0001 | 12:00 am

This example demonstrates how to show a topmost non-modal form, but only within an application. The form must not overlap forms from other applications.

Related Keywords:

c# datetime format, c# string format, datetime format, FileStream, c# inputbox, format datetime, c# open file, .net async task example, c datetime, csharp format

Recently parsed news:

Recent searches: