73 entries
I don't recall pulling up my Git Wrapped before, but I saw someone link theirs today, so I decided to check it out. You can see mine at...
I'm a longtime fan of JetBrains tooling... I've been using them since at least 2007 (see my first post about TDD where I first mention ReSharper). Today, my...
Testcontainers is a relatively new library that can help a lot with working with resources like databases by using containerization. From the website: ...
I just wrapped up my CodeStock presentation on a Brief History of (.NET) Threading. I attempted to cover the last 10 years of threading in .NET starting from...
DISCLAIMER: I'm still digging and learning about the new .NET bits... this blog post is just what I've learned on my own thus far. If I say something...
Microsoft has made strides in the realm of multithreading in the last few years by introducing things like the Task Parallel Library and now async/await...
Ah, timeouts. At my previous job, I wrote quite a bit of code that dealt with threading. When dealing with threads, asynchronous operations, and performant...
I know what you're thinking... "did he just say 'binary data'? Like, 1's and 0's?" Well, yes, yes I did. If you're like me, the last time you actively had to...
I don't usually do blog requests, but then again, I don't usually get blog requests. I've got a few friends that I email back and forth with regarding...
Almost 2 years ago a few guys in the Fort Smith area decided we needed a .NET User Group here. We've fairly consistently had a good 20 to 30 people show up to...
Most of the work I currently do (during the day) is with WinForms applications and most of the time, debugging their problems really isn't all that hard....
I've been attempting to learn NHibernate lately. One of the big draws for me was the ability to write unit tests that did hit a database, but an in-memory one....
If you've been writing .NET applications for a while, you're likely aware that you're not supposed to just throw Exception. Instead, if you're dealing with a...
This post presents a problem that has been approached by others before, but I thought I'd offer yet another possible solution. But first, let's introduce the...
Thought I'd share the below LINQ statement I wrote recently: In this case, the files that are being returned are actually IFileProvider instances, which are...
I've been doing some WPF work lately. WPF is ridiculously powerful and provides a lot more than WinForms. On the other hand - wow, the learning curve is quite...
A coworker swung by a few days ago to ask some questions about using Reflection. I learn really well by example so I decided to use Powershell to show using...
(Warning - this post is both a rant against the Mutex as well as a guide for its usage. Also, don't blindly copy code, only the bottom code snippet works. :-)...
I've found myself wishing that I could pass in more than two arguments to Path.Combine. That is, something like this: As it is, Path.Combine only accepts two...
I couldn't find this information anywhere (yet), so I thought I'd share this. If you're already using the NTSYMBOLPATH setting to download symbols from...
In case you've been under a rock recently, Visual Studio 2008 was released recently which supports a lot of functional capabilities like lambda expressions....
I'm close to finishing up some work on one of my first true TDD projects and it has gone great for the most part. It did take a long time to get started...
Ayende is the man. Seriously. Today, he released Rhino Mocks 3.3 to great fanfare. If there wasn't great fanfare, there should be. My favorite new feature -...
One of the banes of my existence (okay, not that bad but fun to say) is supporting Windows 2000 at work. Yes, there are still Win2K machines out there - not...
I'm off to .NET Roadshow 2007 in Dallas! The speakers are Juval Löwy, Michèle Leroux Bustamante, and Brian Noyes. My hope is we'll be doing some...
I was messing around with some unit tests this week and I came across an unexpected benefit while working on code that worked with a COM object. When you add a...
I found myself writing the following code this evening: Don't ever write code like this. Read the documentation which explicitly says that "you should never...
I was looking through programming.reddit.com today and discovered that IronLisp now has a website on Codeplex. I haven't coded in LISP since college, but it...
I work with the WebBrowser control that was introduced in .NET 2.0 (as well as the ActiveX browser it is based on) a lot at work. As a result, I've come to...
Given this: What is the difference between this class and this class? Both classes have a field named something that is a reference to an HTTP remoting proxy...
I just finished reading this post from the BCLTeam blog on the Silverlight 1.1 Alpha release that was announced at MIX07. It sounds like there is a new...
Lately, I've been working on performance enhancements to one of the projects at work. Our users had all mentioned that the application's startup time was...
Lately, I've been doing some work with the WebBrowser control (new in the 2.0 framework). It really does offer a lot of benefits over directly using the...
We're in the process of migrating to .NET 2.0 at work and one of the the things we've encountered is a problem with remoting between .NET 1.1 and 2.0...
I'll tell you what it looks like. It looks like -1.#IND. That's what it looks like. At least if the code is using the Double.NaN constant. I sure didn't know...
Last month (almost two months ago!), I posted on how to programmatically get the caption for an image in C#. I haven't posted much more on the subject lately,...
When you're creating a GUI control in Visual Studio, your public properties will be displayed in the Property Grid and you can customize this by using...
Back in January, Gaston Milano posted a sort of wishlist for the next version of Visual Studio. One of the features he wanted was the ability to filter...
I wanted to put out a quick post to say thanks to Dave Reed and his Infinities Loop blog. He recently moved his blog from blogger.com to weblogs.asp.net, which...
(After yesterday's post on getting metadata from images in .NET, I've decided to continue to post some of the information I find regarding working with images...
In one of my projects at work, I ran into a situation where Visual Studio 2005 didn't recognize my designer files (i.e. MainForm.Designer.vb) so all of the...
So, this is a little off-topic compared to some of the other posts I have done lately, but it was something new to me and I thought I'd share it for...
Like many other users of Visual Studio 2005, I've occasionally received the WSoD (White Screen of Death) while using the designer. And like a typical user, I...
Just a short note, but for those who have been waiting for a version of NDoc that supports .NET 2.0 assemblies, there is a separate project out on SourceForge...
If anyone out there knew about the BindingList before today, I sure wish one of you would have told me. Now I know, if you had known I was looking for...
I'm not sure how often people run into situations where the ManualResetEvent is needed, but I have a few times. System.Threading.ManualResetEvent provides an...
We were working with partial classes recently at work and we came up with a best practice usage for naming them, at lease for our needs, and I thought I would...
As many of you are aware, if you attempt to access your Outlook data using some of the Outlook Interop assemblies, you'll be seeing a security dialog informing...
I don't have much experience with XPath expressions. This was further illustrated to me recently when I was attempting to use XPath to programmatically parse...
Prompted primarily by Karl Sequin's excellent "Understanding and Using Exceptions" post, I was recently attempting to clean up some of the generic exceptions...
Continuing in the tradition of posts on Visual Studio WSoD's, I ran into another one today that gave me this error: "Object does not match target type."...
I had some code that I was porting from .NET 1.1 to .NET 2.0 today. The code I had was checking the version of comctl32.dll to see if it was version 6 or...
Ever seen this error in Visual Studio 2005? I've seen it all too often and it is really annoying. However, I did find a possible fix today. I was working in a...
I stumbled across this post by Mike Woodring today. Apparently, the UserState property from the BackgroundWorker isn't accessible from the RunWorkerCompleted...
MSBuild is a great tool. If you're not familiar with it, it is Microsoft's new build engine which was released with .NET 2.0. Visual Studio 2005 uses it behind...
Recently, I was adding the ability to open files from an application at work. Luckily, I had run into this situation before, so I knew that you could run a...
Yesterday, after I had been at work for about an hour, Outlook started giving me some weird errors (something about cyclic redundancy checks). I googled the...
I've been using the System.Collections.Generic namespace an awful lot lately. I really like it, too. I use the List<T collection all the time. It is so much...
I've blogged about FileHelpers before. I like it a lot. Since then, Marcos has added even more great features to it including support for .NET 2.0 Generics and...
I remember the first time I ran into an ASP.NET error talking about event validation (specifically while playing with CommunityServer). The solution I...
A few days ago, I was working in Visual Studio 2005 and I was getting awful performance out of it. I decided to pull up Process Explorer to see if I could...
I've blogged about the FlowLayoutPanel in the past. It is a highly useful control in certain circumstances, but it doesn't behave as expected a lot of the...
Lately, I've been doing some work with integrating some of my managed applications with Outlook. There are a lot of code examples and articles out there on...
This may not be new for everyone, but I just learned it today. In webpages, to set focus to a control after a page has loaded, you handle the body's onload...
Thanks to a post from Jeff Atwood, I discovered the blog of Francesco Belana. He's the author of some great books including Programming Visual Basic.NET, which...
Roy Osherove posts today about different ways to accomplish thread-safe GUIs using .NET 2.0... and C#. Since we're primarily using VB.NET at work, we don't get...
I've been experimenting with the FlowLayoutPanel. There are a few catches to using it that can cause some confusion. In my case, the confusion came from...
I discovered today that the new FtpWebRequest/FtpWebResponse classes might not be the best options for connecting to FTP servers, at least unless you're in...
Here is a little gotcha with some changes to the way that .NET 2.0 handles COM interoperability. You probably won't run into this problem unless you're...
By way of Larkware, I came across the FileHelpers library written by Marcos Meli. It looks like a great solution for dealing with delimited or fixed length...
My post earlier today referred to the FileHelpers library by Marcos Meli. Wow, do I wish I had known about this earlier. This thing is great! With a few easy...
I ran into that error today while attempting to install Infragistics NetAdvantage 2005. I'm not exactly sure about why the error occurred, but I was able to...
I ran into a strange situation this afternoon with visual inheritance and threading. I've created a master form for my area at work so that we can have a...