Visual Basic Code Source
Free and Unique code for Visual Basic
 Current page : Home       • Examples
 
Visual Basic.NET 2002/2003 and Visual Basic 2005/2008 - Examples

This page contains a list of examples that is compatible with Visual Basic.NET 2002/2003 and Visual Basic 2005/2008. The code for some of the examples could be similar to each version. But Visual Basic 2005 projects will not open in VB.NET 2002/2003 IDE's. The VB 2005 and VB 2008 oNLY listing it near the bottom of this page.




Note: You CAN open and use VB 02/03 Examples in VB 05 and VB 08. You will just have to go through a simple automated upgrade process...


The examples for VB 05 and VB 08 are located at the bottom of this page. This html code link to get to the VB 2005/2008 Examples is hopefully temporary until I can make better code, but for now just use this link to scroll to the bottom of this page.

Go To the:
Visual Basic 2005 and VB 2008 ONLY Examples - This link may not work with Firefox, so you will have to manually scroll to the bottom of this page for the VB 05 and 2008 examples.

 
 
 
Visual Basic.NET 2002/2003/2005 AND 2008 - Examples (VB.NET Versions)
Title
Description
Screenshot
Download
 
Add Controls at Runtime Example
 
A easy example of how to dynamically add controls while your program is already running.
 
n/a 
 
 
Alpha Blending (Shapes and Images) Example
A example that shows how to AlphaBlend shapes and Images using the DotNet Framwork. This example shows how to AlphaBlend 2 rectangles together and shows how to AlphaBlend 2 images together. Should be pretty easy to understand. The code is commented fairly well.
 
n/a
 
 
Animating Form/Application with Special Effects
 
This example shows how to do some basic animations and effects using the Windows API call - AnimateWindow. There are different animation directions, and/or special effects like Blending, Rolling, or Sliding. You can also specify how fast/slow the animation will take place. Nothing to aweful special I guess.
 
 
 
Apy/Window Spy Example
This is the source code to the cs Vb.Net Window Spy I made. Just some of the features is: Get Active Window Info. Parent Window Info, List of Children, Siblings, and more.
 
n/a 
 
 
 
Audio/Video DX9 Example
 
This example shows you how to use the audio/video objects in DirectX 9. It will play at least - avi, mp3, mpeg, wav, ect... files.
 
n/a
 
 
Basic Threading Example
 
A basic example to show how easy it is to create and use threads in VB.Net. This example does not claim to be the best way to do it.
 
n/a
 
 
Bass Version 1.8 Example
 
This includes 3 different examples. One is a stream example(mp3,wav,ect.) Another is a visualizations example and then a misc example(play samples, streams, audio cd's, ect..)
 
n/a
 
 
Bouncing Ball Example
 
Example of how to bounce a ball. Uses GDI+ graphics and renders in a thread. Very easy to understand.
 
n/a
 
 
Change Desktop Wallpaper Example
 
A example of how to change the desktops background picture/wallpaper from your application. It uses the SystemParametersInfo windows api to do this.
 
n/a
 
 
Change Form Shape/Region Example
A pretty easy example of creating Custom regions that you can conform to your applications forms. This example changes the forms shape to that of text message.
 
n/a
 
 
 
 
Change/Set and Manipulate All Controls on the Form (Updated v1.1)
 
A simple example of how to automatically change/set properties or manipulate controls without having to write code specifically for each control. This example shows how to Clear all Textbox Controls on the Form and How to Check all Checkbox Controls on the Form without having to write code specifically for each of the controls.
Updated: Codes were added that shows how to clear all textbox controls on the form except those specified in the source code to skip over or bypass.
 
 
 
Check/Ping Destination Address
 
This is a very simple example of how to check/ping a ip, url, or UNC (Universal Naming Convention) name using the "IsDestinationReachable" Windows API call. It can return whether it reached the destination successfully, network type available, and the to/from speed when checking the web destination. VB 05 and 08 already has a nice Ping class for checking web destinations so I would use that class if using those versions. Unless you want other info like the To/From speed or something.
 
 
 
Chr Code Conveter - .NET Example
 
This example is similar to the vb 5 and vb 6.0 version. I tweaked the code alittle in the .net version. This will convert regular text to Chr based code. Example, the quote character " would be converted to Chr(34).
 
 
 
Clipboard Example(Very Basic)
 
Just a very basic example of using the built-in .Net clipboard object. I only show copy and paste methods only. In the future will add more to it.
 
n/a
 
 
Combobox/Listbox Text Search Example
 
Shows you how to easily search a combobox or listbox for a specified text. Can search by the starting text or exact text.
 
n/a
 
 
Communicate Between Forms
 
A easy example of how to communicate with another form in the same project. This example includes: changing the text of the textbox control, clicking the button, and loading a picture in the picturebox of the other form.
 
n/a
 
 
Context(PopUp) Menu's Example
 
A easy example of how to add Context(VB6 PopUp) Menu's in VB.Net.
 
n/a
 
 
Convert Unix Time to Structured Time
 
A simple example of how to convert a Unix time value to a basic Windows time value. IT shows the converted Unix time as UTC and Local based Time. The example displays the Computers current Timezone as well as the Timezone offset compared to the UTC (Universal Time Coordinate or Coordinated Universal Time) Time.
 
 
 
CPU RDTSC/Calculate Processor ClockSpeed(Processor Mhz) in Realtime
 
This is a example I made that shows how to get the processors actual rdtsc value in realtime. It also uses this value to calculate the clockspeed of the processor in realtime too. IT uses a .dll I made with Managed C++ (thanks to 'knight' for his help) and simply gives us the time stamp counter value.
 
 
 
CPU Usage Example
A basic example of easily retrieving the value for the cpu's usage. Displays the exact usage value or the integer portion only. Uses Performance Counters.
 
 
 
CPU System Usage using API
 
A example that simply returns the total system usage for the computer using the GetSystemTimes() API call. This example shows how to use this API call and perform various calculations to return and display the computers total processor usage value. The computer MUST have Windows XP - Service Pack 1 or Higher to use this API Function.
 
 
 
Create/Save Images as Thumbnails
 
A basic example of how to convert your images to thumbnails. It also saves the thumbnails as jpeg files.
 
n/a
 
 
Create/Set Inputbox Input/Text as Password Characters
 
A small program I made that will display an inputbox and has the inputbox display the input text as password characters. This example uses subclassing, and some windows APIs like Findwindow, GetWindow, and SendMessage.
 
 
 
Crop Images Example - Mouse Selection
 
A example I made of how to crop images using VB.NET. This example shows how to select the area of the image by using the mouse to select the coordinates.
 
 
 
Crop Images Example - Specified Coordinates
 
Another example I made on cropping images. It does the exact same thing as the above example except it uses the user inputed coordinates and draws a line around the area of the image that is specified in the coordinates.
 
 
 
Crop Images - Combined/Extended Example 
This example is basicly the Mouse Selection and Coordinates example combined. A few bugs were fixed over the previos versions. You can now move the mouse in any directions to select the cropping area and the picturebox does not flicker anymore. Thanks to Zac for the 2x bug fixes.
 
 
 
csAudioCD Library Pro v1.3 Example APP
 
A example application that highlights the features and options for the csAudioCD Library v1.3. The example shows some of the Library's basic features and some of the more advanced features. The compiled .dll is included. Version 1.1 has been removed.
 
 
 
csAutoComplete - Example App
 
A simple example for VB.NET 2002/2003 that shows how to use the csAutoCompleteClass Library to give 'Auto Complete' support to your CombBox and TextBox controls.
 
 
 
csAutorun Maker - Example
 
This is the source code to the csAutorun Maker on the software page that makes it very easy to select the execute (.exe) file you want and the icon to be the autorun icon.
 
 
 
csCompactMusic Library v2.1 - Example
 
This is a basic application to show how to use the csCompactMusic Library Class. The app is very small on purpose :) The Class .DLL is included.
 
 
 
csCPUFeatures Library v1.0 - Example App
 
A simple example of how to use the csCPUFeatures Class Library to get various features that the target computer supports. Some of the features you can check is 3DNow! instructions, as well as SSE, SSE2, RDTSC, Intel FPU Errata/Bug, and more. The library uses the IsProcessorFeaturePresent API to get this information.
 
 
 
csCPUInfoBasic Library - Example
 
This is a example app that shows how to use my csCPUInfoBasic.DLL C++ library. The example will return the CPU Vendor, CPU Model, CPU Stepping, Clockspeed, and more. If you only want the .dll control itself you can download it under the VB.NET - Controls page. Check out the screenshot below if you want to see more info it can give.
 
 
 
csMovie Library Pro v2.0 - Example
 
A brief example to get you started using the csMovieLibrary Class. Apart from the normal play, stop, and pause. It shows you how to get various stats and information. The library source can be downloaded from the controls section.
 
n/a
 
 
csMusicLibrary - PLAY Features/Options - Example
 
This is a example I made that shows how to add 3x different play features to your application. Continuous Play, Repeat Play, and Random Play features. Uses my csMusicLibrary for the playback of the music.
 
 
 
csMusicLibrary Pro v1.0 - Example
 
A example of how to use the csMusicLibrary. This example should give you a jump for a music app. The compiled class is included.
 
n/a
 
 
csSoundPlayer Library v1.0 - Example
 
This is a example on using my csSoundPlayer Library to play wave sound files. The library uses no 3rd party controls.
 
 
 
csStopWatch Library v1.1 - Example
 
A example of how to use the *BASIC* version of my csStopWatch Library. Returns the Elapsed: Minutes, Seconds, and Milli-Seconds. Checks the current Resolution and whether the Stop Watch is running, reset and more!
 
n/a
 
 
csTextBoxX v1.1 Control - Example
 
Demonstrates the eXtended functionality the csTextBoxX Control contains over the original textbox control. It highlights the AutoComplete functionality along with Character Restricting to only allowing Numbers or Numbers with a Single Decimal Point and Disabling the Beep on "Enter" in SingleLine mode. Update v1.1: Added a new feature to search the controls text for specific strings/letters/text with various search options like Match Case.
 
 
 
csWebBrowser 'Com' Control Example
 
A example that shows how to use the 'Com' based ActiveX Webbrowser control in your .Net applications. This is a fully working Webbrowser with alot of various features implemented. It includes 'search/refresh/home/ect' features. Menu items - cut/copy/paste/delete/save/save_as/page setup/print/print preview and more. A tool to grab the source code of the webpage and more. Could be a good start for someone looking to make their own custom WebBrowser.
 
 
 
csWindowsShutdown Library v1.4 - Example Application
 
Example of using the "csWindowsShutdown1.4" Class Library control to shutdown/logoff/reboot Windows. You can force the execution or execute the process normally. The Class Control IS Included in this zip. Check out the Class source code for alot more information.

Update: Version 1.2 added 2x new features, "initiateSystemShutdown and "cancelInitiatedShutdown".

Update: Version 1.3 added a new function to display the "Turn Off Computer" dialog and the option to use API or Shell to perform some of the shutdown/restart/logoff commands, along with other tweaks to the core of the library. This library has FULL intellisense documentation for most of the features.

Update: Version 1.4 added a new feature that will display the "System Settings Change" Dialog with a "Computer must restart before the setting will take place". There were also some more tweaks to the library as well.

Remember, Libraries made with earlier versions of VB.NET can be used in Visual Basic 2005 and Visual Basic 2008. So you can use this library in the new VBs as well...
 
 
 
csWritingPad v1.5 - Example
 
This is the source code to my csWritingPad v1.5 application. Has MANY features and way to many to mention them all. Its based around the RichTextBox control and shows you how to use the control in your applications to create a advanced Word Processor based application. The Richtextbox control is almost used to its limit. It of course has your normal Cut/Copy/Paste, Set Font/Size/Color to the entire document or the selected text only. Shows a simple trick of how to add/paste images. Has capabilitys to print your documents and multi-level Undo and Redo features. Plus it has advanced 'Search and Replace' features. Hopefully this example is something you can benefit from. Enjoy :)
 
 
 
Detecting/Getting the Users Last/Latest Activity
 
This example is based on the VB 6.0 version I made that will monitor system-wide user activity and determine the last time the user interacted with the Keyboard and/or Mouse.
 
 
 
Dialog Object - Example
 
This is a basic example of how to display the open/save dialogs. No need to add a .ocx file to your project.
 
n/a
 
 
Directory and File Information - Example
 
A simple example that uses the DirectoryInfo class and the FileInfo class to get alot of various information for the selected directory or file.
 
 
 
DirectX-DirectSound 9.0 - Example
 
This is a fairly basic example of how to use DirectX's DirectSound classes to play media wave files.
 
n/a
 
 
Display/Show how to display Text/Numbers in the Windows System Tray/Notify Icon area
 
A simple example that shows how to display/show text/numbers in the windows system tray/notify icon area. Creates a bitmap and draws text to it and then retrieves the bitmap as a icon that is then applied to the Notify Icon component.
 
 
 
Download Files from Internet Example
 
A basic example of using the WebClient class to download files from the selected internet address to the selected path on your computer.
 
n/a
 
 
Draw a Ellipse on the Form with Mouse
 
This is a example of how to draw a ellipse on the form using the mouse. It will draw the ellipse, increasing its size, in real time, as you move the mouse.
 
n/a
 
 
Draw a Gradient - Form, Rectangle, Control, ect.
 
Example of how to draw gradient rectangle on a form. Select 2 colors from the comboboxes and click which gradient mode to use.
 
n/a
 
 
Find/Search Combobox and Listbox control
 
Example of executing full searching in a listbox and combobox control. The example can find the exact search value or only a part of the value.
 
 
 
Get all Computer Logical Drives - Example
 
This is a example of how to get all of the logical drives on the current computer. Uses all managed code except 1 api call to get the type of drive each drive is.
 
n/a
 
 
Get a list of the Date/Time Formats
 
A basic example of how to get a specified or default date/time returned in more than 100 different formats. This example shows how to do it very easily with very little code.
 
n/a
 
 
Get More Computer Performance Information
 
This is a simple example based on the VB 5/6 version that uses the GetPerformanceInfo API call to get some more lower level memory and thread information. Nothing more to say I guess. :)
 
 
 
Get Pixel Color from the Mouse Position
 
A example of how to get the pixel color from a window where the mouse cursor position is located. This example uses GetPixel, and WindowFromPoint API calls.
 
 
 
Getting Line Information in Textbox Control
 
This example shows how to get the current line number in VB.NET 2002/2003, getting the text at the current line position and also getting the total number of lines currently in the textbox control. Getting the current line # code is for VB.NET because those versions does not have built-in support like the VB 2005/2008 Textbox versions. Otherwise, the rest of the codes is efficient with VB 05/08 as well.
 
 
 
Get the CPU Timestamp/Calculate Processor ClockSpeed in Realtime
 
This is a example I made that shows how to get the processors actual rdtsc value in realtime. It also uses this value to calculate the clockspeed of the processor in realtime too. IT uses a .dll I made with C++ (thanks to 'knight' for his help) and simply gives us the time stamp counter value..
 
 
 
Higher Performance Windows API Timer - timeSetEvent/timeKillEvent
 
A simple example that uses the timeSetEvent and timeKillEvent API codes to create and use API based Windows timers. This event timer has a much higher resolution than the SetTimer/KillTimer versions at about 1 milli-second compared to 15/16 milli-seconds. But the lower resolution timer may uses a lesser amount of resources. You will have to decide if the tradeoff is worth it I guess.
 
 
Image Converter
A basic example that shows you how easy it is to convert images to different formats.(This example shows: .jpg, .bmp, .gif conversion) The framework supports many more though.
 
n/a
 
 
JPEG Compression - Example
 
This is a example of how to specify the compression quality of a JPEG file.
 
n/a
 
 
Keyboard Key Press - Example
 
Example on capturing the keys that are pressed in your app on the keyboard. This example will throw 2 messageboxes depending on which key you press on the keyboard.
 
n/a
 
 
LinkLabel Control Example 
This example basically uses the linklabel control to mimick a real webpage link. The control will look like a link and when it is linked, it will goto the specified address like a normal link as well. This example uses the ProcessStartInfo class as well to fine tune how to open the link.
 
 
 
Listbox/Combobox Control - Example
 
This example shows how to use some of the functions with the listbox in .Net. Works with the combobox also. (Add items, clear, search, ext..)
 
n/a
 
 
MDI Forms/Windows - Example
 
A basic example of how to create and use MDI Form/Windows in your applications. It will display the total MDI windows that are opened, Arrange the windows a 3 different formats.
 
 
 
Monitor Files/Folders (FileSystemWatcher) - Example
 
This is a pretty decent example application that shows how to do full monitoring of files and folders using the FileSystemWatcher class library. You can specify the folder to monitor and it will tell you what happens to the files or folders. IT can let you know if a 'Change has taken Place', if 'File was Deleted', if 'Directory was Renamed or File was Renamed' and so on and so forth.
 
 
 
Mouse Scroll Wheel - Example
 
A basic example of how using the mouse scroll wheel. It will determine which direction the user is moving the wheel and either increase or decrease the number in the label control.
 
n/a
 
 
Move Form WITHOUT Titlebar by Subclassing
 
An example that shows a simple/easy way to move a borderless form that does not have the normal titlebar. This example uses subclassing to check for specific messages and reacts accordingly. Remember that VB.NET 02/03 Projects should have no problems running in VB 05/08.
 
 
 
Movie Module v2.1 Beta Final - Example
 
This is a example on using the Movie Module to create a Movie player. Based on the VB 6.0 version and there are a few bugs left. I will not be updating this anymore. Important: This this is a obsolete library/module. You should use the csMovieLibrary instead.
 
n/a
 
 
Music Module v2.4 Final - Example
 
This is updated to work with VB.Net. It is still alittle buggy. Has not been updated to take advantage of the new VB.Net coding.(Plays, most music files) v2.3 was removed. Important: This this is a obsolete library/module. Use the csMusicLibrary or csCompactMusic Library instead.
 
n/a
 
 
Notepad Clone - Example
 
This is just a text editor that looks similar to Microsofts Notepad with alot of its features. This is not a completed example.
 
n/a
 
 
Open/Execute/Shell any File/Program - Example
 
This example shows how to open any file that is selected and get various information about that file and the files current process.
 
n/a
 
Performance Counters/Timers Shootout!
 
This is a pretty extensive example of how to use the Counters/Timers that are available to the Windows programmer. It uses the 3x most popular timers and allows you to decide which would fit your needs based on resolution, accuracy, and overhead. This example uses the 'Performance Counter', 'timeGetTime', and the 'TickCount' timers.
 
 
 
Performing Safer Math Calculating when using String Variables
 
This example shows how to perform your basic Math like subtraction, addition, multiplication, and division using the numbers from a String based variable. Basically the example uses the Val() Function to help make it safer to use numbers from strings. IF the string contains no number or does not begin with a number, then it will simply return a 0 instead of throwing a error.
 
 
 
Properly using DoEvents() in your Code
 
This example shows how to properly use DoEvents() in your applications. Just by looking at the screenshot you can see the performance increases MANY times over compared to consistantly using DoEvents(). Whats also nice, is that your application will NOT appear frozen and the user can STILL interact with your program! By using the GetInputState Api call you only process the messages when there is one.
 
 
 
Restart, Shutdown, Log Off - Windows XP
 
This uses the Shell-Process class to run certain commandline arguments to Shutdown, Restart or Log Off the Windows XP operating system from your applications. I don't remember where I got the info for the command lines, to give proper credit.
 
 
 
Rotating Images
 
Shows how to rotate images in various ways. There are about 16 or so rotations types built-in.
 
n/a
 
 
Screenshot/Snapshot - Example
 
This is the source code to the csScreenshot/Snapshot application I made. This will take snapshots of the entire desktop or only a certain window. Can save it to the clipboard or a picture file and more.
 
n/a
 
 
SetTimer/KillTimer API Callback Example
 
A simply example of using delegates to create callbacks for using the Windows Timer SetTimer/KillTimer APIs. These APIs can be used to add timeout/pause capabilities to fire your method every interval you specified in the code.
 
 
 
Sending SMTP Mail
 
This is a basic SMTP example of how to send mail WITH attachments using the System.Web class library.
 
n/a
 
 
Set/Scroll to the Bottom and Top of a Textbox Contents - Updated!: Added API Method as well
 
This is nothing more than a simple example of how you can cause the textbox control scroll down to the end/bottom of its contents and/or scroll to the beginning/top of its contents. This example uses native .net textbox codes and I then added codes to do it with the SendMEssage API call.
 
 
 
System Tray/NotifyIcon Example
 
A example of how to put your application in the windows system tray. This example uses the NotifyIcon custom control.
 
n/a
 
 
Tone Generator
 
This will generate sounds with different frequencys and durations. Could be helpful for a Morse code application. Same as the Classic VB Example just small changes to work with VB.Net.
 
n/a
 
 
Ultimate Textbox Manipulating Example
 
This is a example that shows how to do almost everything you would want to do with a textbox control. There are Way to many codes to list here. But some of them are, searching, selecting text, page right/left, line right/left, page up/down, line up/down, getting line and character information, along with cut/copy/paste and adding, replacing, selecting text. Look at the screenshot to see what all if available.
 
 
 
Yahoo Website Search Service Example
 
This is a simple example of creating a application that uses the Yahoo Search SDK Class to perform basic website searching and to get various info about the search results and info relate to each of the sites. While the compiled class is in this download, I recommend that you go and download the Yahoo Search SDK. Once you download and unzip the SDK, check the the: VB.Net\yahooSearch\Yahoo.API directory for many different source codes. Remember to add a reference to the sdk's compiled class located in the Bin directory under the: VB.NET\Yahoo.API path when you create a application.Click Here to get the SDK!
 
 
 
 
----------------------------------------------------------------------------------------------------------------------------------

 
 
Visual Basic.NET 2005/2008 ONLY (VB 2005/08) - Examples (VB.NET Versions)

VB 2005 Projects can be Used in VB 2008. A simple automated upgrade will take place...
 
Title
Description
Screenshot
Download
 
Add Controls at Runtime Example
 
A easy example of how to dynamically add controls while your program is already running.
 
n/a
 
 
Application Interaction using SendKey Controls
 
A very small and basic example of using sendkeys to interact with a application in another process. This example opens the Calculator application and has options to make the calculator type in numbers 1000, 10, and 1 plus being able to subtract and equal. Plain, simple and easy sendkey example.
 
 
 
Audio/Video Direct X 9.0 Example - VB.NET 2005 Release Version
 
A fairly in-depth example of using the Audio/Video objects in the DX9 library. It shows you to use DX9 for your normal media playback and a few different interface feature. It has your usual play/stop/pause, along with getting various file/extension/duration/position information. It shows how to change the position of the media, change the balance on the speakers, and changing the playback volume. The example is a sound/movie player in one. Added code that will automatically determine the the most popular media file types, then select the proper class library for playback. The movie screen will be hidden if no movie media is playing, and will show itself when a movie is playing. Hopefully this helped you in one way or another.
 
 
 
Basic/Simple Threading - BackgroundWorker Object
 
This is a small example of using the new Background Worker object added to version 2.0 of the DotNet Framework. This example simply runs a specified number of loops on a thread seperate from the main application thread. This BackGroundWorker Object/Class is perfect if you want ease of use and do not need any advanced threading features.
 
 
 
Bouncing Ball Example - 2005 Edition
 
A easy to follow example of how to create and render a moving ball that will bounce off of the controls borders. Added a control to control the speed of the ball. Otherwise it is similar to the 2002/2003 version.
 
 
 
Calculator Example v1.0
 
This is a simple calculator example that has your basic Addition(+), Subtraction(-), Multiplication(*), Division(/) based features. Inlcudes other features like Backspace, Rounding, Square Root(sqrt), Reciprocal(1/x), Sign Change (+/-) and whatnot. This calculator was made with Visual Basic.NET 2005 but will work just fine with Visual Basic 2008.
 
 
 
ClipBoard Example
 
This is a example of how to use the clipboard class from the "MY" interface to copy and paste files and a couple kind of files with certain file types from your applications.
 
 
 
CPU RDTSC/Calculate Processor ClockSpeed(Processor Mhz) in Realtime
 
A simple example of using my csRDTSC.dll to retrieve the cpu/processor rdtsc value and then using that data with a '1' (One) Second loop to calculate the cpu/processor clockspeed in realtime. This is similar to the 'CPU Timestamp/Calculate ClockSpeed' example in the Visual Basic.NET 2002/2003 section, except this one is compatible with Visual Basic 2005.
 
 
 
CPU Usage and Data Example
 
A fairly extensive example of how to use Visual Basic.NET 2005 to use Performance Counters and the Windows Registry to retrieve various information and statistics on a computers cores/processors. It will determine how many cpu's/cores are installed in the computer, and then retrieve various data about the cpu's from the registry. Then it shows how to use Windows - Performance Counters to monitor the usage of each processor/core thats being used, along with the Total usage of the computer. Hopefully there was something useful you could get from this.
 
 
 
Create/Using Managed Windows API Timers - VB 2008
 
A small example made with Visual Basic 2008 on how to use the API Timer to run codes at a certain interval. This timer appears to be just a managed wrapper around the SetTimer/KillTimer API Timer in the User32.dll library. Thus, the highest resolution I was able to get was 15-16ms which is right around the GetTickCount timer resolution which is a part of the user32.dll library as well. While this project will not load in VB 2005, the codes will work with 05 since the timer was first added in version 2.0 of the .NET Framework. IF you want higher resolution Windows Timer Events, then try using the multi-media based Un-Managed timer event called: timeSetEvent/timeKillEvent, which has a resolution of 1 ms.
 
 
 
Create Thumbnail Images with GetThumbnailImage - Example
 
A example that simply shows how to use the GetThumbnailImage method of the Image class to create thumbnails from the selected image.
 
 
 
Crop Images Example for VB 2005
 
A simple example that simply shows how to crop a portion of the image and save the cropped portion in a number of different formats. The formats include bmp, gif, ico, jpg, and png. The example shows how to use the mouse to select from the source image the portion you want cropped from it. There is also a fine tuning feature to exactly select where you want to crop the image.
 
 
 
csBrowserPlus WebBrowser Example
 
This is a close to complete example of how to make your own custom WebBrowser using the new managed WebBrowser control in version 2.0 of the DotNetFramework. The example has its own activity Logo that is active while it is loading a website and stops when it has finished. It shows how to make your own tool to strip all of the url tags from a webpage, get all of the image tags from a webpage, and get the source code of ANY webpage that is loaded. It also has working Back/Forward/Stop/3x Refresh Levels/Home/Search/Print/Properies/Open/ect.... features. Some features may be listed in the example but are not implemented, like the Favorites and Mail features for example. But thats something you can add if you want them. Anyways, hopefully this example will help in some way or another. One more thing, it also has a Auto Complete feature implemented in the textbox control just like Internet Explorers 'AutoComplete' feature that, as you are typing, it will display a list of urls that are similar to what you are typing.
 
 
 
csBrowserPlus WebBrowser Example - Version 2.0 Enhanced
 
Update v2.0: This is a update to the original WebBrowserPlus Example posted above. A big new feature that I actually made Months ago and just now releasing is having its own favorites system. You can add/delete website links and the application will load/save the updates when it open and closes. A new MenuItem with the text of the menu to be the url will be dynamically created as well. Some other minor features is the ability to open a new csBrowser Plus window or the default browser window, selecting all/none, delete selected text, change selected text to italics, bold, underline, and a few other minor features.

Original Features: This is a close to complete example of how to make your own custom WebBrowser using the new managed WebBrowser control in version 2.0 of the DotNetFramework. The example has its own activity Logo that is active while it is loading a website and stops when it has finished. It shows how to make your own tool to strip all of the url tags from a webpage, get all of the image tags from a webpage, and get the source code of ANY webpage that is loaded. It also has working Back/Forward/Stop/3x Refresh Levels/Home/Search/Print/Properies/Open/ect.... features. Some features may be listed in the example but are not implemented, like the Favorites and Mail features for example. But thats something you can add if you want them. Anyways, hopefully this example will help in some way or another. One more thing, it also has a Auto Complete feature implemented in the textbox control just like Internet Explorers 'AutoComplete' feature that, as you are typing, it will display a list of urls that are similar to what you are typing.
 
 
 
csCpuMini Meter v1.1
 
This is the source code to the csCPUMiniMeter program that is under the Software section of this site. This little program will monitor and display your cpu and memory usage via Progressbar percentages and a usage graph from the past to the present. Its similar to how the Windows Task Manager display the CPU usage in a graph. It will display the current cpu usage as a basic number in the System/Notify tray.
 
 
 
csFileIcon Extractor Tool v1.0 - VB 2005 Mini Edition
 
A very small and simple example that shows how to use GDI+ to very easily extract the Icon from most files you want. Plain and Simple :) .
 
 
 
csNotepadX Version 1.0
 
A full-featured windows notepad like text editor with many features. It is built around the textbox control and has every feature the windows notepad has and more. Has full printing, print preview, page setup support along with simple and advanced find/search and replace features. There is character casing, character alignment, and Font support as well.
 
 
 
csMusicLibrary v3.1 Professional Edition - Example
 
A simple example that shows how to use the csMusicLibrary and highlights some of the features. Highlights: Playback, Recording, Elasped Time, Time Remaining, and more. The library has more features than what this example highlights.
 
 
 
csWebSiteUptime Monitor
 
This is a example on how to create a website monitor in Visual Basic.NET 2005 "BETA". It will monitor the website of your choice and return whether or not the website responded to the request and will also give you the time in milli-seconds it took for the website to respond to the request. There are quite a few other features like: how long before the next request, how many requests were successful, how many requests failed and more.
 
 
 
Disk/Logical Disk Example
 
A example of how to get all of the logical drives on the computer. It will also get alot of various information about each disk and display the data. ALL managed code. No need to use the windows api for this purpose. The 2.0 version of the DotNetFramework has full support for this task.
 
 
 
Get the Pixel Color from Mouse Position Example
 
A small and simple example of using a couple API calls to get the Pixels Color at the Mouse Cursor position.
 
 
 
Image/Picture Slideshow and Viewer Example for VB 2005/2008
 
A simple example of how to create a simple image viewer with a basic slideshow feature. It will display all the images in the list and have a short delay when the images change. IT also shows how to use a sortedlist to hold a key and value related to that key. That way the user will only see the name of the file and Not the entire path. It has a music feature as well if you want to play sounds while the slide show is running. The example includes basic Left and Right Rotation features.
 
 
 
Keyboard 'System Keys' Status Example
 
This is a very basic example of how to retrieve the status of some specific keyboard 'System Keys'. Example:You can check whether the 'CapsLock Key' is turned 'On' or the 'Shift Key' is pressed and so on.
 
 
 
MP3 ID3 v1.0 Tag and Wave Header Reader Classes - with Example
 
This example includes a MP3 ID3 v1.0 Tag Class to get the MP3 tag data, and Wave Header Extraction Class to get the data from the Wave File header (bytesPerSecond, sampleRate, ect..) Both of the Classes and Class source code are included with this example.
 
 
 
'Ping Class' Example
 
This is a basic example of using the new 'Ping Class' that is in the new 2.0 version of the .Net Framework. Pings a site of your choice and returns various stats about the ping.
 
 
 
Play Wave File Example
 
This is a example of playing wave sound files using the new SoundPlayer Class in the 2.0 version of the DotNetFramework.
 
 
 
RichTextbox Example (Wordpad Starter)
 
A example that could be considered a small starter Wordpad based application. This example simply highlights some of the Richtextbox features and capabilitys. Shows how to do unlimited Undo/Redo's, Cut/Copy/Paste, Changing the Font/TextColor/Backcolor of the selected text or for the entire document and a couple more features. This should help you to get started using the basic features of the RichTextbox control. You could check out the xsWritingPad v1.5 example for VB.NET 2002/2003 that highlights a very great many of the RichTextBox features.
 
 
 
ScreenShot/SnapShot Example
 
This is a basic example of using the new Subroutine in the 2.0 version of the DotNetFramework to capture the desktop as a image and save to a jpeg file.
 
 
 
Sending EMail using the SMTPClient Class and/or GMail
 
This is a simple example of how to send email messages using the SMTPClient in the DotNetFramework with Visual Basic 2005(v8.0) and/or Visual Basic 2008(v9.0). It contains the normal to/from/subject/body/attachment features. Plus if you have a gMail account, it shows how to use that account as the smtp host to send your messages.
 
 
 
Stop Watch Example
 
A example of using the new StopWatch class in the 2.0 version of the DotNetFramework to create a full featured Stopwatch application. Returns the elapsed time in ticks, milliseconds, seconds, ect...
 
 
 
SysMonLite v1.0
 
This is the source code to a cool little application I made that sits in the system tray and has a right click context menu with program options. This source code will show how to monitor and display your computers total cpu usage in the system tray. It will show it in the system tray as actual numbers too. Look at the screenshot to see it in action.
 
 
 
System Information Example
 
A example of how to get ALOT of various information on a users computer system. IT will return the currect operation system info, users identity info, various physical memory info, display device info, and more.
 
 
 
System Tray/Notify Icon Example
 
A pretty decent example of how to use the Notify Icon to add 'System Tray' support to your applications. It shows how to use most of the features available. Create custom Tooltips, custom Balloon Popups, Context Menu's, Custom Icon, and ect....
 
 
 
 
Compatibility - Visual Basic.NET 2002/2003/2005/2008
Compatibility - The examples listed here are divided into two sections. The first section is for ALL versions of Visual Basic.NET (2002/2003/2005/2008), and the final section is only compatible with Visual Basic 2005/2008 and is located near the bottom of the page.
Visual Basic Code Source - Copyright 1999-2007

-->