May 17, 2008, 9:06 pm
I ran into this weird compile time error the other day, and as it turned out, this is due to the limitation of Visual Studio 2005 deployment capabilities. Continue reading ‘Could not Find File ‘Microsoft.Windows.CommonLanguageRuntime’ Error’ »
May 3, 2008, 9:13 pm
Typically, there is rarely a need to change a control’s ID. However, this practice is sometimes useful when debugging a custom control, partiularly one that contains dynamically generated controls. Continue reading ‘Unexpected Event Behavior’ »
March 8, 2008, 11:42 pm
It seems that the DropDownList control in ASP.Net 2.0 really has some issues. Besides the one I mentioned in an earlier post, I recently ran into another annoying problem. Continue reading ‘A Strange Databinding Issue’ »
February 3, 2008, 10:48 pm
Reflection is case sensitive by default, which comes at no surprise to most C# developers. Continue reading ‘Reflection and Case Sensitivity’ »
January 25, 2008, 10:00 pm
In a role based application, it is often required that certain controls on the UI form be enabled and disabled based on user’s security credentials. Continue reading ‘Enable/Disable Controls using ControlCollection’ »
January 11, 2008, 10:40 pm
A while ago, I discussed some interesting behavior of File.Exist function in .Net. Recently I found out that File.Copy is just as elusive when UNC is involved. Continue reading ‘The Elusive File.Copy’ »
December 31, 2007, 11:06 pm
I came across something rather interesting the other day when trying to determine what sorting algorithms .Net Framework uses in its list class: The built-in sorting method runs much faster than the reverse-engineered and then compiled code, even though in theory the code being executed is identical. Continue reading ‘Same Method, Different Speed’ »
November 19, 2007, 9:56 pm
Here is a tool that I created (in C#.Net) which comes in handy when dealing with multi-frame TIFF images. Continue reading ‘A TIFF Merge and Split Utility’ »
November 15, 2007, 11:33 pm
When dealing with GDI+ in .Net (e.g. certain objects in System.Drawing namespace), we would sometimes get the following exception: Continue reading ‘Understanding “A generic error occurred in GDI+.” Error’ »
October 23, 2007, 9:07 pm
I have heard many people complaining about how GDI+ handles errors. Continue reading ‘Lousy GDI+ Error Messages’ »
August 15, 2007, 9:15 pm
Download DynamicEvent.zip
In an article earlier, I discussed how to dynamically load an assembly and execute it via the contract of a predefined interface. Continue reading ‘Dynamic Event Handling Using Reflection’ »
August 14, 2007, 9:14 pm
Sometimes we find App.config inadequate in addressing our problems and need to have a generic solution in creating strongly typed configuration files. Continue reading ‘Generic Custom Configuration Handler in .Net’ »
August 5, 2007, 9:11 pm
Partial class was introduced in .Net 2.0 mainly for better handling of visual designer generated code. Continue reading ‘Partial Class Differences Between C# and VB.Net’ »
August 1, 2007, 9:07 pm
Download filewatchermt.zip
In business world, file watchers play an important role in day to day operations. Continue reading ‘A Generic File Watcher’ »
July 6, 2007, 8:49 pm
Download ReflectionTest.zip
There are already many good guides out there illustrating how to construct a weakly coupled system that dynamically loads in modules as needed. In .Net, this can be accomplished using reflection. Continue reading ‘Yet Another Guide to Dynamic Assembly loading and Execution Using Reflection’ »