Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Tips and Tricks   (RSS)

Presentation tip: Showing code

Since MEDC 2005, I have been tapped to present sessions many times.  Over the past three years, I have learned a lot and have grown as a presenter. When I was first getting started, I attended my first speaker training course.  Speaker training
Posted by DavidKlineMS | 1 Comments
Filed under:

Quick Tip: Add files to Visual Studio projects the easy way

Here's another in my series of "why didn't I know this feature was there". While I was doing a technical review last week, I learned about a much easier way to add files to my Visual Studio projects. In the solution explorer Select a project

Quick Tip: Debugging Smart Device Unit Tests

While browsing MSDN today, I came upon a handy article that I wanted to share.   Titled 'How to: Debug while Running a Smart Device Unit Test ', it provides step by step instructions on debugging your test projects. There is one additional step

Quick Tip: Getting the Collection of Checked ListView Items

Have you ever created a ListView control and wanted to get the collection of items that the user has checked? While I was working on my demo for MEDC, that was one of the things that I needed to be able to do. If I were writing my application for the

Quick Tip: Using XPath to find nodes by attribute value

There are some things that I can just remember: phone numbers, locker combinations, and the like. There are others that I have to lookup again and again and again. XPath query syntax is one of the latter items. Today, I'd like to talk a little about XPath

No ParameterizedThreadStart? No problem.

The .NET Compact Framework is a subset of the .NET Framework. As such, there are features and functionality that exist in the .NET Framework that do not in the .NET Compact Framework. One such feature is ParameterizedThreadStart. If your ThreadStart delegate
Posted by DavidKlineMS | 1 Comments
Filed under:

Quick Tip: Identifing the interfaces that an object implements

Have you ever wondered what type an object is? How about what interfaces the object implements? Using the .NET Framework and .NET Compact Framework, this information is very easy to determine. The first thing we need to know about an object is it's type.

Quick Tip - Sharing code between multiple projects in Visual Studio 2005

I have long been an advocate for putting common code into an assembly that is shared by applications needing the functionality. That said, there are times where the separate assembly approach is not appropriate. For those situations, today's tip may help

Quick Tip: Specifying a field's name when using the XmlSerializer

Last month, I wrote about how to instruct the XmlSerializer to create an XML attribute for fields in an object . Today, I'd like to talk about how to specify the name used to represent a field in the resulting XML. By default, when an object is serialized,

'const' vs 'static readonly'

I'm a big fan of reusing code whenever and wherever possible. A long time ago, I wrote an assembly that provided common methods and data to some applications I was writing. When I first wrote the assembly, I exposedthe common data as public fields decorated
Posted by DavidKlineMS | 3 Comments
Filed under:

Is it a field or a property?

I very much value code reviews , as long time readers can attest. During these reviews, I have often found myself wondering whether a given line references a field or a property. When reading isolated portions of code, properties can be easily mistaken
Posted by DavidKlineMS | 5 Comments
Filed under:

Separating Application Logic and Data Presentation layers

I'm a big advocate of separating an application's logic from it's user interface. By keeping the logic separate from the data presentation layer (UI), it becomes easy to swap out either component with minimal impact on the other. In addition to ease of
Posted by DavidKlineMS | 2 Comments
Filed under: ,

Quick Tip: Serializing an Object Field as an XML Attribute

The addition of the XML Serializer is one of the reasons I really love version 2 of the .NET Compact Framework. I use the XML Serializer in very nearly every application I write; to save application state, data files, etc. By default, the XML Serializer

Quick tip: Filtering input to a TextBox control

Sometimes, it's the little things that take the longest to work out, so I thought I'd start a "Quick tips" series. Quick tips are intended to be short and solve a very specific issue. I was talking with Mark Prentice today and we were looking at filtering

Command Line Debugging Revisited - Part 5: The X Command

In the previous installment, I talked about attaching to running processes using MDbg . As part of that discussion, I used the X command. Today, I'd like to spend a little time on X . The X command is one of those great features of MDbg that I think is
Posted by DavidKlineMS | 2 Comments
More Posts Next page »
 
Page view tracker