Converting a VB6 Application to VB.NET

Visual Basic logo

Recently I was tasked with stabilizing an old Windows Forms app written in Visual Basic 6.  VB6 was a great language for simple applications in its heyday, but now that the .NET Framework is 10 years old and new PCs all have 64-bit CPUs, it’s high time for an upgrade. Fortunately, all versions of Visual … Read more

Creating a Custom GridView Object

ASP.NET logo

An earlier post dealt with creating a GridView programmatically.  In some cases, this GridView might need to be used multiple times throughout a site, either using the same data, or perhaps a different set of data.  Several options exist when determining how to implement this. The simplest, of course, would be simply to copy the … Read more

Implementing a Factory Pattern in ASP.NET

factory pattern diagram

A question posed by @Ramsharma1234 on Twitter this morning asked how to implement Factory Patterns in ASP.NET. (definition of Factory Pattern) Below is what would be considered a very basic form of Factory Pattern.  This method will essentially instantiate a generic Object, which is the parent of all types of Objects, and later be treated … Read more