.NET news » Examples Examples Rss Feed

The Art of Unit Testing: With Examples in .Net
Author: Roy Osherove
Average rating: 4.5 / 25
(25 reviews)
More .NET Examples books
download

Nested Property Binding

I'm currently in the process of developing an object relation mapper for use with Microsoft SQL server. During this process I've been faced with a number of challenges related to the fact that I will be working with objects rather than datatables. If you've ever tried binding a datagrid to a list of objects, I'm sure you have come across the problem where you wanted to display properties that is not part of the object type itself.

This is normally referred to as nested property binding. Many people create special view objects when this becomes a necessity. I wanted a smoother solution and I wanted it design time. The component I've created derives from Bindingsource and is called ObjectBindingSource. As the name implies the components is designed to be working with objects and not datasets/datatables..

4 Sep 2007, 04:06:00   Source: Nested Property Binding   Tags: Examples C#

Adjust Your Ring Volume For Ambient Noise

This article addresses the possibilities and practicality of a Windows Mobile application that automatically adjusts the Pocket PC's ring level based on the ambient noise in its current environment. The functionality of this app prevents the phone from ringing too loudly or softly, saving me from embarrassment and missed calls. In this article, I'll use this problem as an introduction to Windows Mobile development using Visual Studio 2005 and C#...
21 Aug 2007, 19:00:00   Source: Adjust Your Ring Volume For Ambient Noise   Tags: Mobile Examples

Image Thumbnail Viewer with .NET 2.0

A simple way to create a thumbnail viewer with .NET 2.0
21 Aug 2007, 12:40:00   Source: Image Thumbnail Viewer with .NET 2.0   Tags: Examples Graphics

An easy-to-use URL file downloader class for .NET

A simple to use resumable file downloader class that provides progress feedback for .NET 2.0 or .NET 1.1
16 Aug 2007, 13:07:00   Source: An easy-to-use URL file downloader class for .NET   Tags: Internet Examples

Capture Entire Web Page

I have seen other articles that describe how to accomplish this, but had no luck in getting any to work with Internet Explorer 7. This is a simple example that captures a webpage, inlcuding elements below the fold, and saves it as an image.
6 Aug 2007, 00:26:00   Source: Capture Entire Web Page   Tags: Examples Graphics

The PropertyGrid: Overriding class attributes

The DynamicPropWrapper class wraps an existing class and filters the property information that the .NET PropertyGrid displays. The purpose for this is mainly to control the ReadOnly and DefaultValues for each property dynamically in code. Other features include dynamic modification of the Categories, Descriptions, DisplayNames, Property sorting order, and more.

  • Two methods for handling default values.
  • Wraps an existing class making it a drop in solution.
  • Override attributes with one line of code.
  • Preserves all existing attribute information that may allready be defined in your class.
  • Add/override any attribute desired.
2 Aug 2007, 04:03:00   Source: The PropertyGrid: Overriding class attributes   Tags: GUI Examples

Build a RichTextBox-Based Syntax-Highlighting Editor and IDE

By using the RichTextbox as a base control, you can build an editor that highlights keywords and quoted strings or even an editor that employs IDE-like smart indentation and runs script code interactively.

Chameleon - Connection Settings Manager

Chameleon is an application that allows users to easily change network configuration on each network adapter from taskbar. Chameleon offers the benefit of changing network settings according to the users location such as home or office.
1 Aug 2007, 07:54:00   Source: Chameleon - Connection Settings Manager   Tags: Examples

Analog Clock Control

The Analog Clock control is a control that has almost all functionality that clock control can have and it is fully modifiable.
12 Jul 2007, 21:00:00   Source: Analog Clock Control   Tags: VB.NET Examples Graphics

Extend OpenFileDialog and SaveFileDialog the easy way

If you used WinForms, chances are that at some point you wanted to extend the OpenFileDialog or SaveFileDialog, but you gave up because there is no easy way to do it, especially if you wanted to add some new graphical elements..
11 Jul 2007, 16:21:00   Source: Extend OpenFileDialog and SaveFileDialog the easy way   Tags: Examples