Chris Pietschmann

husband, father, hacker, entrepreneur, futurist, innovator, autodidact


Using LINQ to SQL with SQL Server Compact Edition

I'm currently building a desktop application that needs to store a bunch of data on the users computer, so I've decided to use SQL Server Compact 3.5 for this. There's only one problem, Visual Studio 2008 doesn't support using LINQ to SQL with SQL Server Compact. However, the .NET Framework does and there's a work around to get it working in VS'08 that I'll describe below. In case you aren't aware of what SQL Server Compact 3.5 is, here's the short description that Microsoft gives on their webs... [More]

C#: Flash Window in Taskbar via Win32 FlashWindowEx

The Windows API (Win32) has the FlashWindowEx method within the User32 library; this method allows you (the developer) to Flash a Window, signifying to the user that some major event occurred within the application that requires their attention. The most common use of this is to flash the window until the user returns focus to the application. However, you can also flash the window a specified number of times, or just keep flashing it until you decide when to stop. The use of the FlashWindowEx m... [More]

VEToolkit - Virtual Earth Toolkit v6.2.012509.1053 Released!

This is the first official release of the Virtual Earth Toolkit. The toolkit is by no means complete, but this is a "stable" collection of the Controls, Extenders and Methods that have been implemented thus far. Project: Download the Release: What is the Virtual Earth Toolkit? The Virtual Earth Toolkit is a set of JavaScript-based Controls/Tools that Extend Virtual Earth with... [More]

Simple Port Scanner Written in VB.NET 2003/2008

I was looking over some of the old prototypes I've written in the past, and I can across a Simple Port Scanner that I originally wrote in VB.NET 2003. I originally wrote this back in 2004 (I think), and even posted a compiled version on my website that I have since removed/deleted. So, since it's just sitting on my hard drive collecting virtual dust, I thought I'd post it here in case anyone else can find it usefull. This Port Scanner implements Multi-T... [More]

Windows 7 Beta - Media Player 12 - Bigger Focus On Playing Media/Content

A couple days ago I posted some of my thoughts on the Good and Bad Parts of the Windows 7 Beta, but it was a somewhat incomplete list. So, I've decided to expand upon that list in an additional post. Why? Well, because there are some rather nice improvements worth mentioning that I didn't mention in the previous post. Windows Media Player 12   Bigger Focus on the Playing Media The most noticable (IMO) change to Media Player in v12 is the bigger focus on the media cont... [More]

Windows 7 Beta Has Good and Bad Points - A Short Review

I've been using the Windows 7 Beta (build 7000) for a few days now, and I've starting to form opinions on some of the new changes that have been made. There are good and bad things about this next version of Windows; so I thought I'd share some of my thoughts with anyone interested. Windows 7 Beta Good Points I thought I'd start with the Good Points first, this way you wont just read the bad first and stop reading the article thinking Windows 7 sucks. There are actually some good improvements ... [More]

SQL Compact And The "Unable to load DLL 'sqlceme35.dll'" Runtime Exception

I installed SQL Server Compact 3.5 x86 and started testing it out when I got a nice "Unable to load DLL 'sqlceme35.dll" runtime exception. This seems like odd behaviour for a clean install. In a fairly quick search I found an article on the SQL Server Compact Team Blog that covers a couple possible causes/solutions for this exception. My Solution - Target x86 Only Even though there are 5 possi... [More]

Top Posts of 2008 Plus Overall Traffic Stats

Now that 2008 has come to a close, and I finally have a full two years of traffic history that I can use for comparison I've decided to post a traffic summary as well as list the top posts of 2008. Top Posts of 2008 Here's a list of my most popular posts from 2008. This list only counts the posts I've posted during 2008. JavaScript ForEach Equivalent - 38,171 pageviews .NET 3.5: JSON Serialization using the DataContractJsonSerializer - 8,454 pageviews ASP.NET: Create ... [More]

Single Instance WPF Application in .NET 3.x

If you do a search on implementing a Single Instance application in WPF you'll get quite a few results. From what I've seen there are really only 2 solutions. One is really simplistic and the other offers more functionality; both of which are fairly simple to implement. Method 1: Checking Existing Processes By Name This is the simplest to implement. All you do is check if there is more than 1 running process with the same name as the current process. Here's the code: public partial class App : A... [More]