Rhyous

Examples in C#

C# Examples

  1. How to get the current running executable name as a string in C#?
  2. How to get the relative path (folder the executable was launched in) as a string in C#?
  3. How to remove an element from a regular array in C#?
  4. How to return an string array from a enum in C#?
  5. Working with DateTime and Unix Time Stamps or Universal time (UTC) in C#
  6. C#  – Convert DateTime to and from a Unix timestamp *
  7. How to pause a Console application in C# or the equivalent to the C++ system(“pause”) statement?
  8. How to get your project’s version dynamically in C#?
  9. Detecting when you press “Enter” in a WPF TextBox
  10. How to document a function so Visual Studio’s Intellisense displays it?
  11. What is the equivalent of __FILE__ and __LINE__ in C#?
  12. How read the 64 bit registry from a 32 bit application or vice versa
  13. Important .NET Framework 4.0 Command Line Tools You Must Know
  14. C# – The ?? operator or coalesce operator

Learning on your own

  1. What is and how do I install the Northwind database?
  2. Where to get free training and tutorial videos for WPF?
  3. A good site for learning WPF ListView as GridView development in C# and WPF
  4. Programming Books

Visual Studio

  1. How to resolve the “Could not create an instance of Type” error when “Reloading the designer” in Visual Studio 2008?
  2. How to modify the default new class template for C# in Visual Studio 2008?
  3. Visual Studio 2008 editor colors set to use a black background and how to add these settings yourself or keep your color settings on re-install?
  4. How to compile a wxWidgets application in Visual Studio 2008?
  5. Tool to create keyboard shortcuts that paste common data because code snippets don’t work for C++ in Visual Studio 2008
  6. How to find the file and line number of memory leaks using C++ with wxWidgets in Visual Studio 2008?
  7. How to use relative paths when debugging in Visual Studio 2008?
  8. How to create a custom class template for Xml Serializable classes?

Snippets for Visual Studio

  1. A snippet for handling each native type in C# and Visual Studio…when generics won’t work.
  2. Changing the prop snippet for creating a Property in C#
  3. A Visual Studio snippet for a class with #region sections

Model-View-ViewModel (MVVM) for WPF

  1. Model-View-ViewModel (MVVM)

Windows Presentation Foundation (WPF)

  1. How to process command line parameters or arguments in a WPF application?
  2. Detecting when you press “Enter” in a WPF TextBox
  3. How to limit or prevent characters in a TextBox in C#? Or How to create a NumberTextBox object?
  4. Using Resources.resx for strings in a WPF Application: A technique to prepare for localization

Helpful links about WPF that I have found:

http://www.thejoyofcode.com/WPF_Image_element_locks_my_local_file.aspx
http://www.scottlogic.co.uk/blog/colin/2008/12/wpf-datagrid-detecting-clicked-cell-and-row/

Xml Serialization

  1. How to create a custom class template for Xml Serializable classes?
  2. Handling a custom name space (xmlns) in an XML with Xml Serialization

ADO.NET and Database

  1. How to query a database in C#?
  2. How to execute SQL statement that has a single quote in C# or insert a row with a value that has a quote?
  3. How read use an ADO.NET DataSet to read XML files designed with nested attributes?
  4. How to check if a SQL Table exists in C#?
  5. How to insert a row into a Microsoft SQL database using C#?
  6. What is the difference between a DataSet and a DataTable?
  7. How do I access a MySQL database with C#?
  8. How I get the number of a rows in a Micorosft SQL table using C#?
  9. How do I get the number of rows returned from a Microsoft SQL Query in C#?

Security

  1. How to store a password in an XML file encrypted so it is not in clear text or how to encrypt any text string?
  2. C# Random Password Generator

Integration with other tools

  1. How to connect to Salesforce / SForce with C#?
  2. How do I access a MySQL database with C#?

C# and Regular Expressions

  1. Regular Expressions in C#(including a new comprehensive email pattern)
  2. Common Regular Expression Patterns for C#

C# Example Code

  1. A status hander object that keeps the worst status
  2. How to add a dynamic image and/or a dynamic button to a DataGrid row using a DataGridTemplateColumn and a DataTemplateSelector?
  3. A WPF Progress Bar
  4. How to upload a file to an FTP server using C#?
  5. How to create a directory on an FTP server using C#?
  6. Generic XML Serializer Class for C# and an XML Serialization usage example
  7. Regular Expressions in C#(including a new comprehensive email pattern)
  8. How read the 64 bit registry from a 32 bit application or vice versa
  9. C# DataMeasurement object for comparing, converting, and adding and subtracting data sizes
  10. String extension methods

Processes and Threading

  1. How to get the parent process that launched a C# application?

Localization

  1. Using Resources.resx for strings in a WPF Application: A technique to prepare for localization

* Links to other blogs


Copyright ® Rhyous.com – Linking to this page is allowed without permission and as many as ten lines of this page can be used along with this link. Any other use of this page is allowed only by permission of Rhyous.com.;

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: