Showing posts with label Win. Show all posts
Showing posts with label Win. Show all posts

Thursday, October 05, 2006

Xml Color

This is a wrapper class for System.Drawing.Color, that enables a color to be Serialized and Deserialized

See this content on www.pocketnerd.net -->

Timed Dictionary

The TimedDictionary provides functionality that is similar to a normal Dictionary except the items within it can expire and be cleaned up

See this content on www.pocketnerd.net -->

Friday, March 17, 2006

Generic Name Value Pair

This is a simple class that is used to associate a Name with a corresponding Generic Value and to add Items to ComboBoxes, ListBoxes etc

See this content on www.pocketnerd.net -->

Wednesday, March 08, 2006

Sharing Application Settings

This .NET 2.0 bit of code shows how application settings in one assembly, typically an EXE, can be shared with referenced assemblies, typically DLLs.

See this content on www.pocketnerd.net -->

Monday, February 27, 2006

Feedback Provider

Sample code that shows how to create a Feedback Provider, similar to an ErrorProvider, that can display Info, Warn, Error, Dirty and Mandatory icons

See this content on www.pocketnerd.net -->

Saturday, June 25, 2005

Xml Collection

Creates a collection of name value pair items that can be converted into an XML Document or transformed using XSLT. It is also possible to add groups of name value pair items.

See this content on www.pocketnerd.net -->

Grouped Hashtable

The GroupedHashtable is a class that looks very similar to a standard Hashtable except the string key is used to group the corresponding items together rather than identify a single, specific item.

See this content on www.pocketnerd.net -->

Tuesday, June 07, 2005

Name Value Pair

This is a simple class that is used to associate a Name with a corresponding Value and to add Items to ComboBoxes, ListBoxes etc

See this content on www.pocketnerd.net -->

Monday, June 06, 2005

High Performance Timers

There is no easy way to get very precise timings within the .NET Framework to see exactly how long code takes to execute or how long it takes to access a database. However, the Windows Platform does expose such functionality through performance counters and we can use interop to access it directly from within our .NET code

See this content on www.pocketnerd.net -->

Sunday, May 08, 2005

Convert a DataSet into a String

Sample code that shows how to how to convert an in memory DataSet into a String using a MemoryStream

See this content on www.pocketnerd.net -->

Saturday, April 16, 2005

PocketNerd WizardEngine

The PocketNerd Wizard Engine (Pwiz Engine) provides a powerful, simple, and consistent way to create Windows Forms based Wizards that can be launched as a modal or non-modal dialog from within your own Application, as a standalone executable that runs in its own process and as a Custom Wizard from within the Visual Studio.NET IDE.

This article describes how the Pwiz Engine works and how to create such Wizards.

See this content on www.pocketnerd.net -->

Wednesday, April 13, 2005

C# Custom Wizards

This is the final article in the series that looks at how more programming power can be introduced into our VS.NET Wizards by creating a C# Custom Wizard

Article 1: VS.NET Wizard Overview
Article 2: Custom HTML Wizards
Article 3: C# Custom Wizards


See this content on www.pocketnerd.net -->

Tuesday, February 22, 2005

VS.NET PropertyGrid

This article takes a look at the PropertyGrid Control in a Windows Forms application before moving on to using the VS.NET 2002/3/5 Properties Window from a hosted .NET UserControl

See this content on www.pocketnerd.net -->

Sunday, February 06, 2005

System Tray Application Wizard

This C# Wizard can be used to quickly create a new Windows Application that interacts with a System Tray icon

See this content on www.pocketnerd.net -->

.NET - COM Object Wizard

This C# Wizard creates a new .NET project and class that implements several best practices in exposing a COM object to a Win32 application. This is particularly useful for Excel and other Office .NET development activities

See this content on www.pocketnerd.net -->

Monday, August 30, 2004

Flash Window

Sample code that shows how to alert the user to a particular Window by causing it to flash on its Title Bar and on the Taskbar

See this content on www.pocketnerd.net -->

Thursday, August 26, 2004

Integrate your Spell Checker

A lot of enterprises deploy Microsoft Office. Why not make the most of it and use the Spell Checker in your applications

See this content on www.pocketnerd.net -->

Saturday, August 07, 2004

PocketProd and Reflector

This article shows how easy it is to add support tools to specific context menus in VS.NET. The article describes the process for adding Lutz Roeder's.NET Reflector to the assembly References items, but also acts as a general example for adding external tools to VS.NET using PocketProd.

See this content on www.pocketnerd.net -->

Custom HTML Wizards

This article builds on the previous VS.NET Wizard Overview to show you how to create and deploy custom HTML Wizards. In particular, the article describes creating a C#-COM Class that can be used to perform Excel Integration.

Even if you are not interested in the Wizards, the COM Wizard installer may prove useful so why not download and install it!

See this content on www.pocketnerd.net -->

Sunday, June 27, 2004

Auto Complete Run-like Combo Box

Everybody that uses Windows is familiar with the functionality of the Start-->Run dialog that allows a user to enter the name of an application or document and quickly launch it.

This bit of code contains an extended combo box that implements all of the auto complete and memory capabilities of the Run dialog

See this content on www.pocketnerd.net -->