Click here to Skip to main content

Articles by Pete O'Hanlon (Articles: 28, Technical Blogs: 37, Tip/Tricks: 4)

Articles: 28, Technical Blogs: 37, Tip/Tricks: 4

RSS Feed

Average article rating: 4.77

Miscellaneous
General
Posted: 20 Mar 2012   Updated: 20 Mar 2012   Views: 70,694   Rating: 4.95/5    Votes: 69   Popularity: 9.10
Licence: The Code Project Open License (CPOL)      Bookmarked: 106   Downloaded: 0
A look into the CodeStash Visual Studio Extension.
Smart Client
General
Posted: 18 Jun 2009   Updated: 18 Jun 2009   Views: 56,395   Rating: 4.97/5    Votes: 40   Popularity: 7.96
Licence: The Code Project Open License (CPOL)      Bookmarked: 83   Downloaded: 903
Using the WCF RESTful services to create a Twitter hybrid Smart Client.
ASP.NET
General
Posted: 20 Mar 2012   Updated: 21 Mar 2012   Views: 55,122   Rating: 4.82/5    Votes: 35   Popularity: 7.44
Licence: The Code Project Open License (CPOL)      Bookmarked: 49   Downloaded: 0
A distributed codesnippet storage tool : Part II
Utilities
Posted: 20 Mar 2012   Updated: 15 May 2012   Views: 108,458   Rating: 4.98/5    Votes: 81   Popularity: 9.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 162   Downloaded: 0
A distributed code-snippet storage tool.
Client side scripting
General
Posted: 22 Dec 2010   Updated: 22 Dec 2010   Views: 121,121   Rating: 4.96/5    Votes: 68   Popularity: 9.09
Licence: The Code Project Open License (CPOL)      Bookmarked: 81   Downloaded: 405
A rapid introduction to jQuery and the power of the almighty $
Silverlight
General
Posted: 19 Jul 2009   Updated: 21 Mar 2014   Views: 16,393   Rating: 4.21/5    Votes: 8   Popularity: 3.81
Licence: The MIT License      Bookmarked: 12   Downloaded: 0
Adding some missing bits to Silverlight.
Windows Phone 7/8
General
Posted: 14 Jul 2011   Updated: 14 Jul 2011   Views: 67,974   Rating: 4.95/5    Votes: 71   Popularity: 9.16
Licence: The Code Project Open License (CPOL)      Bookmarked: 123   Downloaded: 477
Learning how to program Windows Phone 7 from the very beginning
Database
SQL Server
Posted: 11 Jan 2007   Updated: 11 Jan 2007   Views: 54,987   Rating: 3.26/5    Votes: 25   Popularity: 4.58
Licence: The Code Project Open License (CPOL)      Bookmarked: 52   Downloaded: 0
The first in a series of articles on prioritizing and improving query performance in SQL Server.
Posted: 3 May 2007   Updated: 3 May 2007   Views: 70,145   Rating: 4.58/5    Votes: 25   Popularity: 6.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 67   Downloaded: 0
These articles are on prioritizing and improving query performance in SQL Server.
C#
Delegates and Events
Posted: 2 Aug 2007   Updated: 28 Mar 2008   Views: 39,913   Rating: 4.42/5    Votes: 15   Popularity: 5.20
Licence: The Code Project Open License (CPOL)      Bookmarked: 52   Downloaded: 257
Easily manage .NET events using attributes, enumerations and generics
How To
Posted: 22 Aug 2010   Updated: 25 Aug 2010   Views: 122,091   Rating: 4.95/5    Votes: 73   Popularity: 9.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 174   Downloaded: 388
Using Code Contracts to make elegant code
Posted: 25 Aug 2010   Updated: 25 Aug 2010   Views: 34,191   Rating: 4.88/5    Votes: 24   Popularity: 6.74
Licence: The Code Project Open License (CPOL)      Bookmarked: 65   Downloaded: 181
Using Code Contracts to make elegant code
Windows Forms
Posted: 21 May 2010   Updated: 8 Jun 2010   Views: 35,917   Rating: 4.89/5    Votes: 44   Popularity: 8.03
Licence: The Code Project Open License (CPOL)      Bookmarked: 55   Downloaded: 707
This article describes one way of dealing with the thorny issue of image lifetime in applications.
.NET Framework
General
Posted: 18 Aug 2006   Updated: 18 Aug 2006   Views: 27,403   Rating: 4.31/5    Votes: 16   Popularity: 4.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 24   Downloaded: 205
Using Extender Provider to add properties to enable/disable items based on common classifications using IExtenderProvider
Windows Presentation Foundation
General
Posted: 22 May 2008   Updated: 22 May 2008   Views: 107,980   Rating: 4.87/5    Votes: 45   Popularity: 8.05
Licence: The Code Project Open License (CPOL)      Bookmarked: 74   Downloaded: 2,066
Shows how certain WPF concepts can be easily understood via ASP.NET.
String handling
Regular Expressions
Posted: 17 Apr 2008   Updated: 6 May 2008   Views: 26,177   Rating: 4.40/5    Votes: 18   Popularity: 5.52
Licence: The Code Project Open License (CPOL)      Bookmarked: 17   Downloaded: 118
A class to perform a "naive" comparison of two chunks of text to see if they look to be the same.
Ultrabooks
Intel Haswell Ultrabook Reviews
Posted: 7 Aug 2013   Updated: 7 Aug 2013   Views: 2,087   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Haswell – Intel SDP Unit (Software Developer Preview) – 1st impressions
Posted: 30 Aug 2013   Updated: 30 Aug 2013   Views: 1,731   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Haswell – Intel SDP Unit (Software Developer Preview) – The Keyboard fights back
Posted: 16 Oct 2013   Updated: 16 Oct 2013   Views: 2,620   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Haswell – Intel SDP Unit (Software Developer Preview) – a death in the family
Windows 8 Design
Design
Posted: 14 Sep 2012   Updated: 17 Sep 2012   Views: 18,672   Rating: 5.00/5    Votes: 20   Popularity: 6.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 18   Downloaded: 0
The Fake Project - The first two days of a Code Project redesign.
Interviews
General
Posted: 19 Oct 2011   Updated: 19 Oct 2011   Views: 26,925   Rating: 4.97/5    Votes: 41   Popularity: 8.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Welcome to our continuing series of Code Project interviews in which we talk to developers about their backgrounds, projects, interests and pet peeves. In this installment we track down Code Project member Pete O'Hanlon.
Posted: 14 Aug 2013   Updated: 15 Aug 2013   Views: 5,340   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
In honour of the 10 million member milestone, CodeProject members Pete O'Hanlon and Ranjan.D reflect back on their time as part of the developer community..
Scrapbook
General
Posted: 4 May 2007   Updated: 1 Jun 2007   Views: 250,395   Rating: 4.92/5    Votes: 99   Popularity: 9.82
Licence: The Code Project Open License (CPOL)      Bookmarked: 40   Downloaded: 0
A guide to getting along nicely in the forums
Posted: 19 Feb 2008   Updated: 21 Feb 2008   Views: 69,934   Rating: 4.84/5    Votes: 70   Popularity: 8.93
Licence: The Code Project Open License (CPOL)      Bookmarked: 145   Downloaded: 0
So you want to go it alone? Things to think about when running your company.
Posted: 22 Feb 2008   Updated: 21 Feb 2008   Views: 69,508   Rating: 4.76/5    Votes: 34   Popularity: 7.28
Licence: The Code Project Open License (CPOL)      Bookmarked: 63   Downloaded: 0
So you want to go it alone? Things to think about when running your company.
Posted: 28 Mar 2008   Updated: 28 Mar 2008   Views: 65,924   Rating: 4.81/5    Votes: 33   Popularity: 7.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 62   Downloaded: 0
So you want to go it alone? Things to think about when running your company.
Posted: 16 Apr 2008   Updated: 16 Apr 2008   Views: 36,177   Rating: 4.89/5    Votes: 29   Popularity: 7.14
Licence: The Code Project Open License (CPOL)      Bookmarked: 26   Downloaded: 0
So you want to go it alone? Things to think about when running your company.
Wearables
General
Posted: 6 Jun 2014   Updated: 6 Jun 2014   Views: 8,592   Rating: 5.00/5    Votes: 10   Popularity: 5.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 45
An introduction into how to be the coolest dev in your block, writing wearable code

Average blogs rating: 4.90

Document / View
Doc/View Internals
Posted: 16 Apr 2009   Updated: 16 Apr 2009   Views: 13,731   Rating: 4.55/5    Votes: 4   Popularity: 2.74
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 0
Action based ViewModel and Model Validation
Edit Controls
General
Posted: 8 Jun 2010   Updated: 8 Jun 2010   Views: 9,848   Rating: 4.91/5    Votes: 5   Popularity: 3.43
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Using Attached Behaviors to modify the behaviour of a TextBox
Masked and Validating controls
Posted: 4 Apr 2011   Updated: 4 Apr 2011   Views: 4,341   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Adding Regular Expression functionality in your TextBox.
Miscellaneous
General
Posted: 4 Jun 2011   Updated: 4 Jun 2011   Views: 9,903   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Well, Microsoft has finally unveiled what is commonly known as Windows 8. The Metro UI represents a dramatic step forward for Windows applications.
Status Bar
General
Posted: 14 Apr 2014   Updated: 14 Apr 2014   Views: 2,394   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Long time readers will have realised that I have been spending a lot of time with the technology that was formally known as Perceptual Computing (PerC). You may also know that this technology is now known as RealSense and that it will be rolling out to a device near you soon. What you might not [&#8
Applications & Tools
General
Posted: 23 Nov 2012   Updated: 23 Nov 2012   Views: 2,691   Rating: 4.50/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
I have recently been playing around with Knockout.js, and have been hugely impressed with just how clever it is, and how intuitive. One of the really great features that Knockout provides is the ability to have a computed observable object. That’s a fancy way of saying that it has functionalit
Silverlight
General
Posted: 16 Apr 2009   Updated: 16 Apr 2009   Views: 13,579   Rating: 4.80/5    Votes: 2   Popularity: 1.44
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
One of the really great things you can do with WPF is use Mouse.OverrideCursor to set the cursor for the entire application.
Posted: 10 Oct 2010   Updated: 10 Oct 2010   Views: 10,503   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Draggable PushPins
HowTo
Posted: 30 Jul 2009   Updated: 30 Jul 2009   Views: 13,951   Rating: 4.67/5    Votes: 4   Popularity: 2.81
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
Silverlight charts, and reaching my inner child
C#
General
Posted: 3 May 2010   Updated: 3 May 2010   Views: 9,382   Rating: 4.83/5    Votes: 7   Popularity: 4.08
Licence: The Code Project Open License (CPOL)      Bookmarked: 18   Downloaded: 0
Using the Task Parallel Library in .NET 4.0
Windows Forms
Posted: 16 Apr 2009   Updated: 16 Apr 2009   Views: 14,532   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
Where did my StartupPath go?
Other .NET Languages
General
Posted: 28 Jun 2009   Updated: 28 Jun 2009   Views: 11,980   Rating: 4.89/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 21   Downloaded: 0
Axum is designed for applications that require parallel task execution. As it is designed to create parallel applications, the language offers first class constructs for achieving parallelisation.
Libraries
General
Posted: 13 Sep 2011   Updated: 13 Sep 2011   Views: 7,485   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
How I coded the Scrubber command that’s available in the new version.
Windows Presentation Foundation
Controls
Posted: 11 Feb 2011   Updated: 11 Feb 2011   Views: 4,129   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
How to create a watermarked textbox.
Posted: 1 Apr 2011   Updated: 1 Apr 2011   Views: 7,371   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
A simple mechanism to limit the input of data to a TextBox so that it only accepted the relevant numeric amount.
Posted: 8 Jul 2012   Updated: 9 Jul 2012   Views: 4,277   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
The solution to a problem that was posted on CodeProject.
Data Binding
Posted: 16 Apr 2009   Updated: 16 Apr 2009   Views: 17,212   Rating: 4.38/5    Votes: 4   Popularity: 2.58
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
A sample of the WPF databinding infrastructure.
Posted: 10 Jun 2009   Updated: 29 Jun 2009   Views: 32,157   Rating: 4.67/5    Votes: 10   Popularity: 4.65
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
Binding Passwords
Posted: 21 May 2009   Updated: 29 Jun 2009   Views: 14,452   Rating: 4.67/5    Votes: 5   Popularity: 3.36
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 0
In this post, I'd like to cover a fairly common scenario that I've received various bits of email about as WPF is becoming more and more popular with developers.
General
Posted: 16 Apr 2009   Updated: 16 Apr 2009   Views: 18,052   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 0
How to have fun with fonts in WPF
Posted: 1 May 2009   Updated: 1 May 2009   Views: 24,262   Rating: 4.87/5    Votes: 10   Popularity: 4.86
Licence: The Code Project Open License (CPOL)      Bookmarked: 32   Downloaded: 0
Adding simple HelpProvider functionality to your WPF applications couldn't be easier.
Posted: 28 Sep 2009   Updated: 28 Sep 2009   Views: 34,499   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
Textbox Drag/Drop in WPF
Posted: 12 Oct 2009   Updated: 12 Oct 2009   Views: 16,471   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 0
Logging display and WPF
Posted: 1 Feb 2010   Updated: 1 Feb 2010   Views: 11,837   Rating: 4.89/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 21   Downloaded: 0
Providing Undo/Redo across VMs (part 1 - simple properties)
Posted: 6 Sep 2011   Updated: 6 Sep 2011   Views: 7,835   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
MoXAML Power Toys gets that MEF injection to make it plugin based.
Ultrabooks
General
Posted: 13 Feb 2013   Updated: 13 Feb 2013   Views: 2,088   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
My apologies for not posting for a while; it’s been a pretty crazy couple of months and it’s just about to get a whole lot crazier. For those who aren’t aware, Intel® have started running coder challenges where they get together people who are incredibly talented and very, very cer
Posted: 19 Feb 2013   Updated: 19 Feb 2013   Views: 1,948   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
A weekly blog digest of my progress with using the Perceptual Computing items.
Posted: 26 Feb 2013   Updated: 26 Feb 2013   Views: 3,508   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
This is a copy of the post I made on the Intel site here. For the duration of the contest, I am posting a weekly blog digest of my progress with using the Perceptual Computing items. The first weeks post is really a scene setter where I explain how I got to this point, and [...]
Posted: 4 Mar 2013   Updated: 4 Mar 2013   Views: 3,011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
This is a copy of the post I made on the Intel site here. For the duration of the contest, I am posting a weekly blog digest of my progress with using the Perceptual Computing items. This weeks post shows how Huda has evolved from the application that was created at the end of the first [...]
Posted: 19 Mar 2013   Updated: 19 Mar 2013   Views: 3,235   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
This is a copy of the post I made on the Intel site here. For the duration of the contest, I am posting a weekly blog digest of my progress with using the Perceptual Computing items. This weeks post shows how Huda has evolved from the application that was created at the end of the fourth week. [...]
Posted: 16 Oct 2013   Updated: 16 Oct 2013   Views: 3,649   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
I’m delighted with the help and support that I’ve had from Intel.
Intel Haswell Ultrabook Reviews
Posted: 7 Aug 2013   Updated: 7 Aug 2013   Views: 1,492   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
The reveal Bonk, bonk bonk bonk bong…. That’s the sound that greeted me when I opened the box from Intel™ featuring a developer preview Haswell Ultrabook™, and there’s no geek in the world who wouldn’t want to repeat that sound, so after opening and closing the case for ten m
Code Generation
General
Posted: 8 Jun 2011   Updated: 8 Jun 2011   Views: 9,384   Rating: 4.80/5    Votes: 4   Popularity: 2.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
In this post, I’m going to demonstrate a simple technique to add resize and close functionality to window buttons when you want to custom draw your window chrome without having to add code behind the window.
Uncategorised Technical Blogs
General
Posted: 7 Mar 2011   Updated: 7 Mar 2011   Views: 7,443   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Kissing MVPship goodbye forever
Posted: 13 May 2011   Updated: 13 May 2011   Views: 4,220   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Recently I’ve had time to revisit the question of identity columns (or sequences if you like). A client had come up with a screen that they really wanted us to incorporate in to their application, and the design of it had been done by some of their business analysts. One of the fields that was
Posted: 12 Mar 2013   Updated: 12 Mar 2013   Views: 3,035   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
This is a copy of the post I made on the Intel site here. For the duration of the contest, I am posting a weekly blog digest of my progress with using the Perceptual Computing items. This weeks post shows how Huda has evolved from the application that was created at the end of the third week. [...]
Posted: 29 Aug 2013   Updated: 29 Aug 2013   Views: 3,639   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Haswell – Intel SDP Unit (Software Developer Preview) – The keyboard fights back

Average tips rating: 4.92

Programming Tips
General
Posted: 17 Mar 2010   Updated: 17 Oct 2011   Views: 49,071   Rating: 4.89/5    Votes: 24   Popularity: 6.75
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 0
Over the last couple of days I've seen numerous examples of people posting about how to count words in a sentence. Disturbingly, these postings recommend suggest counting the number of spaces in the sentence and use that as the basis of a word count.You may be asking why this is a problem. Well,...
Posted: 14 Jun 2011   Updated: 29 Jul 2013   Views: 18,957   Rating: 4.90/5    Votes: 10   Popularity: 5.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 16   Downloaded: 0
Switching data templates entirely in XAML.
Installation
General
Posted: 6 Apr 2011   Updated: 6 Apr 2011   Views: 37,242   Rating: 4.93/5    Votes: 11   Popularity: 5.12
Licence: The Code Project Open License (CPOL)      Bookmarked: 20   Downloaded: 0
If you want to create MSBuild files, and only have Visual Studio solutions, take heart - there is a trick that will help you out.
Testing and QA
General
Posted: 9 Dec 2013   Updated: 9 Dec 2013   Views: 6,026   Rating: 4.96/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
While we are all familiar with testing standard interface implementations, actually testing Lazy imports can be trickier if you don't follow this trick.
No reference articles have been posted.

Pete O'Hanlon
CEO
United Kingdom United Kingdom
A developer for over 30 years, I've been lucky enough to write articles and applications for Code Project as well as the Intel Ultimate Coder - Going Perceptual challenge. I live in the North East of England with 2 wonderful daughters and a wonderful wife.
 
I am not the Stig, but I do wish I had Lotus Tuned Suspension.
Follow on   Twitter   Google+


Advertise | Privacy | Mobile
Web04 | 2.8.141015.1 | Last Updated 22 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid