.NET Programming

Articles related to .NET programming topics

Partial Classes and Methods – A Bit Ri dicu lous

The idea of a partial class was an idea brought on by Microsoft in the .NET framework awhile ago and ever since then I have seen very little use of them. However, I am sure they are around alive and well in more complex production code. I for one am not a huge fan of the idea of splitting a class over multiple files just for maintenance reasons, but I ...

Interfacing with VB.NET

Sure, you might have heard the term "interface" before in another language and yet not truly know what they mean by "a contract". Don't worry, you are not alone. Several books talk about interfaces with the term "contract" and never really explain what they mean by saying a class is bound by that contract. So lets take a closer look at interfaces and specifically how VB.NET "implements" them. We use ...

10 Reasons to switch from Java to C#? HA!

Once in a great while I stumble across a supposedly "professional" article that makes little to no sense. This is usually due to some over evangelical developer who just loves a language. I think it is part of our job as developers to hold back the love and always approach language comparisons with an open mind. In this entry I will talk about an article that gives 10 reasons why ...

Watermarking Images With Text in C#

Have you ever wanted to watermark your images in a C# application? Write your own little copyright on the photo and prevent those lamahs from actually ripping it off your site and using it for their own dastardly deeds? Ever wonder why I talk with questions and sound like I am an infommercial? Neither do I but after seeing a great question on the boards about watermarking, I thought I ...

DLL Importing and Use in C#

Windows has always had a ton of Dynamic Link Libraries (DLL) files that it uses as a collection of related functions bound up into a single file. DLLs are accessed for finding open windows, accessing files, changing graphical elements of a system like the desktop or controlling where windows appear on screen. Many applications make use of these files as well and just at the beginning of the decade we ...

Avoid Tying Classes to Your Forms

So you have a great class written and you want to integrate it into your project. Whether it be C#, Java, VB even C++ you may have asked yourself "How do I go about getting my class to update my form controls?" or "How do I get the class to change something on my interface or another class?" It is a common question asked on the board and the answer ...