VB.NET Sample Code
-
Making a .NET app run on Vista with Administrator priviledges
by James Crowley
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.
-
How to empty a recycle bin
by Peter Rekdal Sunde
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.
-
VB Express Color Object to Hex String
by Chris Buske
This function takes one color type variable and returns the hex code in a string.
-
Visual WebGui a unique approach to AJAX development
by Guy Peled
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".
-
Health Monitoring in ASP.NET 2
by
This is a code sample for using health monitoring...
-
GDI+ Image Encoder and Decoder Info
by Mitch ★
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.
-
Date And Time Validation Functions
by Hari K
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"
-
SQL Data Provider VB.NET Class
by
This class includes some useful methods for working with Misrosoft SQL Server in .NET simply and quickly.
-
Convert Decimal Integer Values to Binary String in VB6
by Alex Etchells
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.
-
VB.NET Stylise Your Forms like you would with CSS on a webpage
by phill
How to Programatically change properties of all the controls on your form.
-
Printing with formatting in VB.NET
by Jereme Guenther
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 Geolocation .NET Component in VB.NET
by IP2Location Inc
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 .NET
by Rasto Novotny
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.
-
Generate an Image of a Web Page
by Alan Dean
Demonstrates how to fetch images and thumbnails of web pages using a hidden web browser control.
-
Using the Credential Management API
by Alan Dean
Following secure development best practice, an application should obtain and store user credentials securely. Microsoft has provided a means to accomplish this on the desktop: the unmanaged Credential Management API, which exposes the capability to provide a standard login experience for the user which is also secure. This code demonstrates how to create a generic dialog implementation using this API.
-
Parse a UK Date String
by James Crowley
Ever wondered why DateTime.Parse doesn't recognise non-US date format? Here's how to get it to!
-
Spoofing the Referrer using HttpWebRequest
by Dave Wanta
Here's a simple way to spoof the referrer to a web page during a web request.
-
Calculate Age
by James Crowley
How to calculate someone's age from their birth date.
-
Double buffering in .NET
by Simon Soanes
Ever wondered how to double buffer with a Graphics object so your GDI+ based game/control doesn't flicker annoyingly? Here's how!
-
Execute a Process and Fetch its Output
by James Crowley
Demonstrates how to redirect the output of a shell program (such as a batch file) so you can fetch the text it returns.