Archive for the 'C#' Category
Everybody at one point or another runs into a need to deal with threading. I would say the most common occasion is within event handlers. Often something on the application’s form will be updated to reflect information provided in the event handler. The problem with this is that the event handler will frequently be called [...]
April 11th, 2009 | Posted in C#, Threading | Comments
Quite often I see in forums people asking how to tell when a hosted WebBrowser control has finished loading. What follows are any of a half a dozen solutions, but often they are either out dated or just don’t work. After fighting with this one again in a project of mine, I have decided to [...]
August 26th, 2008 | Posted in Browser, C#, Tips & Tricks, VB.NET | Comments
This is one of those gems that I read about quite a while ago but never used. Especially when working with multiple threads this technique is almost indispensable. How I ever made it before I don’t know.
If you’ve ever debugged your app (and I hope you have), there are few things more irritating than stepping [...]
August 1st, 2008 | Posted in C#, Debugging, Tips & Tricks, Visual Studio | Comments
I have not posted much lately for one main reason: I like posting complete applications, or at least complete libraries. As it would have it, I do not have the time, energy, or creativity to post complete projects on a basis regular enough to warrant a site devoted to.
As such, I am going to try [...]
May 20th, 2008 | Posted in C#, Tips & Tricks, Windows Mobile | Comments
In many projects I am finding that I am quickly growing tired of writing delegates to keep various controls thread safe in multi-threaded environments. I have not yet determined whether it is best to create separate utility classes to handle all of the non-thread safe functionality, or to extend the control itself to be thread [...]
November 12th, 2007 | Posted in C#, Threading | Comments
Yes you read that correctly. I have had this class laying around for a while and finally decided to finish it up, write an article about it, and make it publicly available. I did a LOT of searching and turned up absolutely nothing in the way of implementing Google Bookmarks, so I give you a [...]
November 12th, 2007 | Posted in C#, Interoperability | Comments
Remember Mailslots? I do! I do! Gohd, I do..
Back in the day I used Mailslots to create a very simple LAN chat program in Delphi. Now I have re-created that functionality for use in .NET. Here I have a fully working Mailslot control written in C#.
This is one of those technologies that seriously [...]
November 12th, 2007 | Posted in C#, Legacy | Comments
In a recent project I found the need to be able to drop an image from Internet Explorer onto my form and capture the URL of the image. If you have tried using any of the text formats to get the drop data then you know this does not work. At best you will get [...]
November 12th, 2007 | Posted in C# | Comments