Browse by Tags

All Tags » .NET (RSS)
As WinForms and WebForms developers, we are used to building user interfaces (UIs) that look like this: Notice the rectangular header area and the rectangular link area and the rectangular data entry area. With Silverlight it is (relatively) easy to give...
I just needed to add a simple image to my Silverlight application to include a company logo. Three hours later … This post provides information on the image formats supported by Silverlight so that you don't run into the same issues and waste as much...
So I have read in dozens of places that you can easily share a source code file between your business objects and your Silverlight project. So I thought I would try it. No go. [To begin with an overview of Silverlight, RIA, and your business objects,...
There may be times when you want RIA Services to ignore a property in your business object. This may be the case if you know you won't ever need to access the property from your Silverlight UI or if you can't make RIA services understand the property...
This post details first how to build a list containing the data to display in a WinForms TreeView control. Then it demonstrates how to use recursion to populate the TreeView control from the list. [For information on populating a TreeView control from...
with no comments
Filed under: , , , ,
With RIA Services, it is easy to use your own business objects in your Silverlight application… once you have the basic plumbing in place. However, there are quite a few steps required to set up that plumbing. This post details the process of hooking...
Gradients are a good way to make your application more visually interesting. They turn a flat solid color into something more natural and appealing to the eye by creating an illusion of light and shadow. For example, compare this image which uses flat...
If you are building a WinForms application and want to style your text, you may want to use the RichTextBox control instead of the standard TextBox control. This post provides some of the common techniques required to style text in a RichTextBox control...
4 comment(s)
Filed under: , , , ,
Way back when we were using Visual Studio 2005, there was a Clipboard Ring tab in the Toolbox. I loved  that tab! When I am doing a bunch of copy/pastes, I sometimes find that I hit Ctrl+C when I meant to hit Ctrl+V, and poof! my Clipboard was kindly...
with no comments
Filed under: , , , ,
Visual Studio 2008 (Professional Edition and above) provides a really nice set of tools for development and execution of unit tests. It is, of  course, easy for your tests to access the public properties and methods of your classes. But what about...
4 comment(s)
Filed under: , , , ,
Visual Studio 2008 (Professional Edition and above) provides a really nice set of tools for development and execution of unit tests. It is, of  course, easy for your tests to access the public properties and methods of your classes. But what about...
1 comment(s)
Filed under: , , , ,
Visual Studio 2008 (Professional Edition and above) provides a really nice set of tools for development and execution of unit tests. This post provides suggestions for testing your property getters and setters. [To begin with an overview of unit testing...
with no comments
Filed under: , , , ,
Visual Studio 2008 (Team System ONLY) provides a really nice set of tools for viewing the code coverage of your unit tests. NOTE: While Visual Studio 2008 Professional Edition has tools for building, executing, and debugging unit tests, it does NOT include...
6 comment(s)
Filed under: , , , ,
Visual Studio 2008 (Professional Edition and above) provides a really nice set of tools for development and execution of unit tests. [To begin with an overview of unit testing, start here .] This prior post demonstrates how to build a unit test using...
4 comment(s)
Filed under: , , , ,
If you have Visual Studio 2008 or later and have the Professional Edition or better (NOT the Express Editions), you have some very nice unit testing tools within your Visual Studio environment. These tools help you write, execute, and track your unit...
12 comment(s)
Filed under: , , , ,
If you are using XML in a WinForms application you may find the need to display the XML data in a DataGridView. Let's take this XML: <states>     <state name="California">        ...
Lambda expressions can be assigned to a delegate variable. The lambda expression is then executed when the delegate is called. [To begin with an overview of lambda expressions, start here .] In the following example, a lambda expression is assigned to...
The same several questions often come up in the forums regarding the basics of building a user control with VB.NET or C#. The goal of this post is to answer those questions. There are three basic types of WinForms user controls that you can create: Extended...
1 comment(s)
Filed under: , , , ,
A Func delegate encapsulates a method that returns a value. It takes up to four parameters (and this number is increased in .NET 4.0) plus the return value. [To begin with an overview of lambda expressions, start here .] The following signature is a Func...
Just as the name implies, an action delegate encapsulates a method that performs an action and has no return value. It takes up to four parameters (and this number is increased in .NET 4.0). [To begin with an overview of lambda expressions, start here...
More Posts Next page »