September 2005 Entries
So, I've got a little code for moving a control from one location/size on a form to another location/size. It does this via some slick animation code that I've got and the whole thing works quite well. The function you see below is where you start the animation process. One of the duties of this function is to queue subsequent calls to animate the same control. Now, if we receive a call to animate a specific control that is already being animated, we have two choices. We could either abort the first...
Kid's Programming Language ... It's a .Net IDE & Language for kids. Free too. Very cool
I've been building a library of useful code. Here's my next addition: Debug Timing (and a little design pattern, to boot)
This is the highest rated MSDN article I've seen yet (8 of 9 after 59 votes). And, indeed, it does a rather good job of explaining Ajax.NET. ASP.NET Spiced: AJAX
You don’t need to read my rant… this isn’t the blog you are looking for… move along. Is it sane to rant about my own stupid design decisions? *shrug* So, I’ve got this pet side project that I’ve been slowly working on. One facet of the design is deciding how to display a specific set of objects to the user. (Note: This should not have been a hard decision at the time… read on.) In the first design, which I did way back in college, I gave the objects each...
While on the subject of debugging, I should not neglect to mention my all-time favorite debugging trick. First, step back a second and think: have you ever encountered the following vile and worse than useless bit of code? try { //some code...}catch(Exception){} I have. Here's the easy way to find these heinous little buggers. Burried within Visual Studio .Net and Visual Studio 2005 is the “Exceptions” dialog (menu: Debug / Exceptions). The one in 2005 is considerably more friendly, but...
I know web applications may be the future, but I really, really like developing Windows Forms. Most of the time it's just fun, in my opinion. Especially debugging. Yes, successful debugging can be one of the best, and most rewarding parts of programming. And to that noble end, I'll direct you at these excellent debugging tips for System.Windows.Forms. Good stuff. Tips for Debugging into System.Windows.Forms (and other managed code) Oh, and if WinForms isn't your thing, take a look anyways. You'll...
I love regions in Visual Studio. Regions are awesome! I use them all the time. However I have (had) one gripe. I want to be able to collapse a region from the bottom. You can’t do it via the IDE’s UI. Instead, you have to scroll all the way to the top of the region and hit the little “collapse region“ button. But with the hotkey Ctrl+M+M (hold [ctrl] and tap [m] twice) you can collapse whatever code block contains the cursor. Brilliant! VS is just packed with great usability...
... but I think the idea is a good one. We'll see how it goes. Just keep checking back for updates... or if aggregation is your thing, you can find an RSS feed here. I plan to post random thoughts, rants, and photos. Some articles on C# (“c pound” to those who have experienced Phong) might show up if I find something I would consider worth writing about...