Library code snippets tagged with vb.net
-
How to access a MySQL database with .NET
by Edward Tanguay
Demonstrates how to connect to a MySQL database with C#.
-
Virtual Stack
by Daniel Okely
This is an implementation of a stack.
-
Clearing TreeView taking too much time
by Palo Mraz
Explores an odd feature of the System.Windows.Forms.TreeView and a simple workaround.
-
User-Friendly Validation using ErrorProvider
by Tim Dawson
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.
-
Get Current Username in VB.NET
by Walter Steed
Demonstrates how to use the GetUserName API in VB.NET
-
Send File to Recycle Bin in VB .NET
by Walter Steed
.NET version of "Send file to Recycle Bin"
-
Sending Email With an Attachment
by James Crowley
A simple bit of code demonstrating how to use the MailMessage object to send an email with an attachment.
-
Screen Resolution
by Bharat Nagarajan
Helps you to get the screen resolution from VB.NET
-
List Files in a Directory
by JesusFreak
A little code snippet that lists files in a directory
-
Pinging a host from VB .net
by MstrControl
A class that allows ping a computer.
-
Flatten That Combo Box, Man!
by Stacey Brown
A .NET class written in VB.NET for your own flat combo box.
-
API Samples
by Matthew Taylor
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.
-
How to “Snap” the Cursor
by Karl Moore
Learn how to move the cursor position to slap bang in the middle of your control.
-
Are You Running in the IDE?
by Karl Moore
Here's how to detect if your .NET code is currently being debugged, or if we're in design mode.
-
Crafty Conversion Between Graphic Formats
by Karl Moore
Think converting images between different formats is complicated in .NET? Think again. Karl shows you how.
-
Random Numbers... That Work!
by Karl Moore
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.
-
The Ordinal Number Function
by Karl Moore
Give numbers their ordinals back.... this function automatically returns the correct ordinal; "st", "nd", "rd", "th" depending on the number you give it.
-
How Big is that File – in English?
by Karl Moore
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.
-
The Trick to Temporary Files
by Karl Moore
Karl Moore reveals how to save temporary files in... the temp directory!
-
Is an Internet Connection Available?
by Karl Moore
Check if an internet connection is available using this simple code snippet.