Sample Code 
-
If you're targeting Windows Vista and your application requires administrator priviledges (such as accessing the program files directory), then it will fail unless you include a manifest so Windows knows. Here's how.. 
-
Here is a little snippet that allows you to clean your recycle bin without any confirmation from the user, no progress ui and the sound is removed.. 
-
This function takes one color type variable and returns the hex code in a string.. 
-
Visual WebGui is not just another AJAX framework but rather a different approach to web application development, specially designed to simplify building highly complex applications like Outlook Web Access (OWA). Visual WebGui makes it possible for developers to create applications that were previously developed only by the "big guys". . 
-
Sample code to display useful information about the built in GDI+ Image Encoders and Decoders. Easily used to display information about any Encoder and Decoder as well.. 
-
This function is used for VB.Net developers. It is useful for Date validate when the date format is "dd/MM/yyyy" or "dd/MMM/yyyy". Time validation is also useful for Validating the given time in the format of "HH:mm:ss"
. 
-
This class includes some useful methods for working with Misrosoft SQL Server in .NET simply and quickly.. 
-
A small function to convert decimal integer values to a binary string.
The number of bits can be optionally specified but this will be increased if insufficient.. 
-
How to Programatically change properties of all the controls on your form.. 
-
This code demonstrates how to print formatted text using VB.NET, with a a printing class which allows text to be formatted at the character level. . 
-
IP2Location .NET component that translates IP address to country, city, region, latitude, longitude, ZIP code, ISP and domain name. Developers use this component for projects related to:
1. Display native language and currency;
2. Redirect based on country;
3. Digital rights management;
4. Prevent password sharing and abuse of service;
5. Reduce credit card fraud;
6. Web log stats and analysis;. 
-
Priority queue is collection like stack or queue. Objects are pushed into priority front in any order, and a priority is assigned to each object. They can be then popped from priority front ordered by priority. It is able to specify if objects with lower priority are popped first or objects with greater priority are popped first.. 
-
Demonstrates how to fetch images and thumbnails of web pages using a hidden web browser control.. 
-
Ever wondered why DateTime.Parse doesn't recognise non-US date format? Here's how to get it to!. 
-
Here's a simple way to spoof the referrer to a web page during a web request.. 
-
How to calculate someone's age from their birth date.. 
-
Ever wondered how to double buffer with a Graphics object so your GDI+ based game/control doesn't flicker annoyingly? Here's how!. 
-
Demonstrates how to redirect the output of a shell program (such as a batch file) so you can fetch the text it returns.. 
-
You can save code by piling SQL statements into one SqlCommand and then getting a DataReader with multiple result sets. . 
-
Demonstrates how to capture a screen shot of the entire desktop, or a particular window in C# or VB.NET.. 
-
Demonstrates how to connect to a MySQL database with C#.. 
-
This is an implementation of a stack.. 
-
Explores an odd feature of the System.Windows.Forms.TreeView and a simple workaround. . 
-
Data entry is a very important part of a lot of applications. It is important to validate data as it is entered without disturbing the user. Enter the ErrorProvider component.. 
-
Demonstrates how to use the GetUserName API in VB.NET. 
-
.NET version of "Send file to Recycle Bin". 
-
A simple bit of code demonstrating how to use the MailMessage object to send an email with an attachment.. 
-
Helps you to get the screen resolution from VB.NET. 
-
A little code snippet that lists files in a directory. 
-
A class that allows ping a computer.. 
-
A .NET class written in VB.NET for your own flat combo box.. 
-
Shows samples of how to use different kinds of APIs. Changing and getting different system settings such as mouse position, beep length and frequency, computer name, user name, drive type, swap mouse button. You will need to create the needed controls on the form before accessing them in code of course.. 
-
Learn how to move the cursor position to slap bang in the middle of your control.. 
-
Here's how to detect if your .NET code is currently being debugged, or if we're in design mode.. 
-
Think converting images between different formats is complicated in .NET? Think again. Karl shows you how.. 
-
Has all this talk about seeds got you confused? Here's a nice snippet to show you the best way to get random numbers in .NET.. 
-
Give numbers their ordinals back.... this function automatically returns the correct ordinal; "st", "nd", "rd", "th" depending on the number you give it.. 
-
Not everyone wants to convert 2147483648 to 2 GB in their head every time we want to know how big a file is. Here's an easier way.. 
-
Karl Moore reveals how to save temporary files in... the temp directory!. 
-
Check if an internet connection is available using this simple code snippet.. 
-
Ever wondered how to add a internet link to Internet Explorer's Favourites from your app? Here's how!. 
-
Demonstrates how to use a simple regular expression to remove all HTML tags from text. 
-
XBrowse is a small application that allows the user to view and edit XML files as well as extract XSD schema files from the XML document. It is overall a pretty simple program that is based off of a code snippet in the VS.Net IDE.. 
-
Implements the SHBrowsrForFolder capability on a .NET environment.. 
-
Many people ask how implement control arrays in VB.Net. The simple answer is you can't. I've created a vb.net project that demonstrates how to create a series of command buttons based on a user selected amount. It then adds these buttons' click event to an existing click event for a control placed on the form in design time. As far as I can tell this pretty much covers what you might want to do with arrays.. 
-
How to fill a form or draw text with a color gradient.. 