Category Archives: .NET
VS Project Templates are Aggravating
I love Visual Studio, but some of the work I have to do to make things work the way I want is aggravating. I just started a new WPF solution to follow along with a chapter in the book, and … Continue reading
"Out of Memory" Errors with GDI+ TextureBrush
The TextureBrush class lets you draw a shape using an image as a texture, giving you some control over the way the texture is tiled. I encountered a forum post where a user was trying to use TextureBrush to draw … Continue reading
Managed DirectX Documentation is Installed in VS 2005 Help
I’m working on some research that involves managed DirectX, and after I read a few chapters of the book Managed DirectX 9 Graphics and Game Programming (which I really recommend — more later) I wanted to look at the documentation … Continue reading
Making a control that accepts arrow keys
I’m working on a project with a custom control on which I want to implement the arrow keys. I was completely mystified as to why I wasn’t getting KeyUp events when I pressed the arrow keys. I started using Reflector … Continue reading
Some Consistency, Please
Let’s look at the signatures for constructors of ArgumentNullException and ArgumentException: public ArgumentException( string message, string paramName ) public ArgumentNullException( string paramName, string message ) Notice how they both take two string parameters, but each has opposite order. This drives … Continue reading
Mixing numbers and replacement strings
This is yet another thing that I found took me too long to find on Google. I’m using the .NET regular expressions, and looking to replace values in a string with numbers, and I need to use the special $1 … Continue reading
Having trouble with Form.AcceptButton?
Recent explorations of WPF have caused me to revisit things I used to avoid in .NET. I’ve spent a lot of time over the past week or so working with the TableLayoutPanel and FlowLayoutPanel, and I never really realized how … Continue reading