Tuesday, October 30, 2012

VB.NET download example source codes

Visual Basic.NET Source Code Examples

[  Application Interaction using SendKey Controls (11.9 KiB, 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., 28 Downloads; Since: August 28, 2012)]
[  Audio/Video Objects Direct X 9.0 (17.2 KiB, 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., 37 Downloads; Since: August 28, 2012)]
[  Basic/Simple Multithreading- BackgroundWorker Object (13.8 KiB, This has source code of using the new Background Worker object added to version 2.0 of the DotNet Framework. It is likwiswe compatible with the .NET Frameworks version, 3.5, 4.0, and 4.5, This 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., 29 Downloads; Since: August 28, 2012)]
[  Bouncing Pong Style Ball - 2005 and Higher Version (7.6 KiB, Shows how to create and render a moving ball using the GDI+ APIs that will bounce off of the controls borders. Added a way to control the speed of the ball. Otherwise it is similar to the 2002/2003 version. It does play a beep sound whenever it hits the wall and bounces in the other direction. I guess this could be the start of a Pong style game or something., 288 Downloads; Since: August 28, 2012)]
[  Calculator Example in VB.NET (34.9 KiB, This is a 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 so on. This calculator was made with Visual Basic.NET 2005 but will work just fine with Visual Basic 2008, VB 2010, AND VB.NET 2012., 435 Downloads; Since: August 28, 2012)]
[  Checking if the Operating System/Application is 64 Bit or 32 Bit (17.4 KiB, This provides multiple methods on how to check if the operating system and if your program is running in 32-Bit (x86) mode or 64-Bit (x64) mode. It uses 9 ways including checking a registry key, GetSystemInfo/GetNativeSystemInfo, Environment Variables, WMI, IntPtr size, and more! VB 2010 and Visual Basic 2012 has a feature that was originally added in the .NET 4.0 and that is available in the dot net 4.5 framework framework called: Environment.Is64BitOperatingSystem, which is a property that will return True if the operating system is 64Bit and False if the os is NOT 64 bit (x64) but is 32 Bit (x86). If using those versions and you only need to know the addressing for the operating system (OS), then go ahead and use Environment.Is64BitOperatingSystem. Also if the registry or another method in this example returns AMD64 or Intel64 then it IS 64-bit/x64 and not 32-bit/x86., 285 Downloads; Since: August 28, 2012)]
[  ClipBoard Example (15.6 KiB, This shows how to use the Windows clipboard class from the "MY." interface to copy and paste files from a filesystem source and with certain file types in your applications. The class has quite a few functions working with the Windows clipboard. So check them out!, 17 Downloads; Since: August 28, 2012)]
[  CPU RDTSC/Calculate Processor ClockSpeed(Processor Mhz) in Realtime (29.9 KiB, Shows how to use my Visual C++ csRDTSC.dll file to retrieve the cpu/processor's rdtsc value and then using that data with a '1' (One) Second loop to calculate the cpu/processor's mhz 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 only compatible with Visual Basic 2005, VB 2008, Visual Basic 2010, and Visual Basic .NET 2012., 23 Downloads; Since: August 28, 2012)]
[  CPU Usage and Data Example (14.7 KiB, Shows how to use either Visual Basic.NET 2005, VB 2008, VB.NET 2010, and/or Visual Basic 2012 to use Performance Counters and the Windows Registry to retrieve various information and statistics on a users computer system cores/processors. It will determine how many cpus/cores are installed in the computer, and then retrieve various data about the cpu's from the registry. It then 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. (I only added components for a dual core cpu or less since this was made way back when the AMD Athlon 64 3800+ X2 was new). Hopefully there was something useful you could get from this., 25 Downloads; Since: August 28, 2012)]
[  CPU Usage in System Icon Tray (39.3 KiB, This is the complete example source code to the csCPUUsageInTray program in the software section. This program uses the GetSystemTimes API that was added to Windows XP with Service Pack1 and higher operating systems. Using the function will allow you to calculate the computers entire processor or computer cpu usage. I use this cpu usage value to both plot a graph with the cpu usage history and to draw a text icon in the system tray to show the cpu usage as numbers. This is similar to the SysmonLite program I made but better I guess. :), 18 Downloads; Since: August 28, 2012)]
[  Create/Using Managed Windows API Timers - VB 2008, VB 2010, and VB 2012 (13.0 KiB, A small example made with Visual Basic 2008 but can easily be upgraded to VB 2010 or Visual Basic 2012 on how to use an 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, but Un-Managed timer event called: timeSetEvent/timeKillEvent, which has a resolution of 1 ms., 26 Downloads; Since: August 28, 2012)]
[  Create Thumbnail Images with GetThumbnailImage (13.5 KiB, Shows how to use the GetThumbnailImage method of the Image class., 17 Downloads; Since: August 29, 2012)]
[  Crop Images using VB 2005, VB 2008, VB 2010, and 2012 (15.5 KiB, 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., 22 Downloads; Since: August 29, 2012)]
[  csAudioCD Library v2.5 Pro Enhanced - .NET 2005/2008/2010/2012 Edition (454.3 KiB, This is an example that shows how to use the very feature-rich csAudioCD v2.5 Library to make a complete CD Player based application. The library has Over 50 features available and this example highlights some of them. Apart from the basic play/stop/pause features the example shows how to get some important CD and Audio Tracks information like the length, type, position, and more. The library has Many more subs/functions/properties then what this example shows. This download already includes the compiled audio cd class .dll in the Bin directory. Enjoy!, 21 Downloads; Since: August 29, 2012)]
[  csBrowserPlus WebBrowser (Managed Control) (84.2 KiB, 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., 21 Downloads; Since: August 29, 2012)]
[  csBrowserPlus WebBrowser - Version 2.0 Enhanced (94.3 KiB, Update v2.0: This is a update to the original WebBrowserPlus 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., 25 Downloads; Since: August 29, 2012)]
[  csComputerInfoTool - The Vista to 7 and 8 Edition (163.1 KiB, This is the source code to my csComputerInfo Tool under the Software page. This basically shows how to get a bunch of computer based data for the cpu/processor, video card, motherboard, memory/ram, windows os, and C: hard drive. This program uses the .NET Framework, Registry, Performance Counters, and Windows Management Instrumentation (WMI) to get the computer info. So if you've ever wanted to do any of this then the example may be of some help. :), 26 Downloads; Since: August 29, 2012)]
[  csCpuMini Meter v1.1 (101.3 KiB, This is the visual basic 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., 21 Downloads; Since: August 29, 2012)]
[  csCPUTargeting Express v1.0 (657.2 KiB, This is the vb code to the program I made to make it simple to specify which cpu architecture "(32-bit (x86) and 64-bit (x64)" to target along with the configuration of your choice (Debug and/or Release). Alot of the code is commented and fairly cleaned up. There is definitely room for improvement though. This program was made specifically with Visual Studio 2005 Standard in Visual Basic 2005 but is compatible with VB 08, VB 2010, and Visual Basic.NET 2012. The setup project in also in this example download in case you want to see how to create a more advanced setup for your applications compared to the boring 1 click setup feature.., 14 Downloads; Since: August 29, 2012)]
[  csEasyEncoder 2010 eXPress Edition v1.2 (4.4 MiB, This is the source code to my csEasyEncoder 2010 Express application on how to convert media files like video and audio to other formats like MPEG 4, Flash Video, AVI, MPEG 2 DVD, VCD, and SVCD preset formats and more! You can also save/strip/retain the audio/music from a video to a .MP3 or .WAV file. Some of the available extensions is: .MP4, .AVI, .MPG, .FLV, .WMV, ect.. The program uses the excellent ffmpeg.exe library to perform all of the encoding tasks and interacts with the library as a command line console based utility but you never see the console window or nothing from the library! The ffmpeg.exe and H.264 HQ preset file is included in the project. Just download the source code from the link below or if you only want the program setup without source code then check out the Downloads - Software section of this website., 22 Downloads; Since: August 29, 2012)]
[  csEasyEncoder 2011 eXPress Edition v2.0 (4.4 MiB, This is the source code to my csEasyEncoder 2011 Express application on how to convert media files like video and audio to other formats like MPEG 4, Flash Video, AVI, MPEG 2 DVD, VCD, and SVCD preset formats and more! You can also save/strip/retain the audio/music from a video to a .MP3 or .WAV file. Some of the available extensions is: .MP4, .AVI, .MPG, .FLV, .WMV, ect.. The program uses the excellent ffmpeg.exe library to perform all of the encoding tasks and interacts with the library as a command line console based utility but you never see the console window or nothing from the library! The ffmpeg.exe and H.264 HQ preset file is included in the project. Just download the source code from the link below or if you only want the program setup without source code then check out the Downloads - Software section of this website. 2011 Update: I added some new features for specifying the number of B-Frames and Reference Frames to use when encoding the video. Also added was the ability to specify both the resolution and Aspect Ratio to encode the video plus encoding with or without de-interlacing. The latest version of ffmpeg and the compatibility changes is also included., 26 Downloads; Since: August 29, 2012)]
[  csEasy VB.NET Mailer v1.0 (306.5 KiB, This is a full featured and advanced application for sending email messages using gmail, yahoo, and even hotmail smtp services. It has many advanced features like sending messages to multiple recipients, multiple cc's (carbon copies), and even multiple attachments. You can send the email messsage as a html view, as a plain text only view, or allowing the email provider to select the format/view to display to the recipient. It uses a small class that will convert the richtextbox richtext (rtf) to html so you can send an email as html with basically full html formatting. The example also includes features for attaching a signature to your message, adding multiple attachments, along with keeping track of and saving multiple contacts. The program has built in support for using gMail, Hotmail, and even Yahoo as your smtp server. There are really to many features and options to mention. This was made using VB 2008 but is basically compatible with VB 2005 and Visual Basic.NET 2010, and VB 2012, 262 Downloads; Since: August 29, 2012)]
[  csFileIcon Extractor Tool v1.0 - Mini Edition (12.1 KiB, A very small and simple example that shows how to use GDI+ to very easily extract the Icon associated from most files you want., 17 Downloads; Since: August 29, 2012)]
[  csNotepadX Version 1.0 (145.9 KiB, 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., 288 Downloads; Since: August 29, 2012)]
[  csMusicLibrary v3.1 Professional Edition (49.0 KiB, 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., 255 Downloads; Since: August 29, 2012)]
[  csWebSiteUptime Monitor (24.7 KiB, This is an example on how to create a website monitor in Visual Basic.NET 2005 and newer. 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., 16 Downloads; Since: August 29, 2012)]
[  csWindows CDKey Tool v1.0 (30.5 KiB, A simple application example on how to decode/decrypt the Windows DigitalProductID located in the system registry. The vb code should have no problems getting the cdkey from Windows XP, Windows Vista, Windows 7, Windows 8. The example also has other source code for getting other Windows info like the service pack, whether Windows is 32-bit or 64-bit (32 bit, 64 bit), version, edition, ect... and uses dotnet, .net framework, and wmi to get the extra data., 23 Downloads; Since: August 29, 2012)]
[  Disk/Logical Disk Example (13.2 KiB, An 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 and higher version of the DotNetFramework has full support for this task., 21 Downloads; Since: August 29, 2012)]
[  Downloading Files using Webclient.DownloadFileAsync including Advanced Features (20.1 KiB, An example that shows the more advanced features using the DownloadFileAsync feature in the Webclient class. Shows how to download a file from a uri/url to the computer and monitoring the size of the download, the progress of the download, and also the approximate speed your downloading at, and more. Another good thing about the Async version of DownloadFile is that it doesn't consume your thread like the normal DownloadFile sub does. So your application will still be responding and usable while its downloading., 241 Downloads; Since: August 29, 2012)]
[  Get/Set CPU/Processor Affinity Mask (11.8 KiB, This shows how to tell windows which cpu and/or core you want your application to run on. For instance you can have it run only on the cpu's 2nd core and to do load balancing which is actually the default and can go back and before between all cores or processors. This uses the System.Diagnostics.Process.ProcessorAffinity Property located in the Process Class. This same property is available in .NET 2002/2003 as well in case your using those versions. AMD Athlon x2 and Intel Core2 dual core and quad/4 core cpu's are very popular these days and depending on what your doing you may want to change your programs affinity., 15 Downloads; Since: August 29, 2012)]
[  Get the Pixel Color from Mouse Position (12.4 KiB, Uses a couple GDI API calls to get the Pixels Color at the Mouse Cursor position., 13 Downloads; Since: August 29, 2012)]
[  Get Volume Info for Hard Drive and Such (15.6 KiB, This uses the GetVolumeInformation API call to return various info about the specified drive. Some info returned is the Serial Number, Max Characters supported, Filesystem, and such. While this does return a serial number for the hard drive or other specified drive, it is NOT the actual Manufactor serial number but the Volume serial number. The number will change each time the disk is formatted or created. So keep that in mind. Use wmi performance counters to 'try' and get the hard drives TRUE serial number., 22 Downloads; Since: August 29, 2012)]
[  Image/Picture Slideshow and Viewer for VB 2005/2008/2010/2012 (150.1 KiB, 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 audio sounds while the slide show is running. The example includes basic Left and Right Rotation features., 30 Downloads; Since: August 29, 2012)]
[  Keyboard 'System Keys' Status (13.2 KiB, This is very basic and shows 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., 21 Downloads; Since: August 29, 2012)]
[  MP3 ID3 v1.0 and 1.1 Tag and Wave Header Reader Classes (21.3 KiB, Includes a MP3 ID3 v1.0 and v1.1 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., 17 Downloads; Since: August 29, 2012)]
[  Ping Class Example in Dotnet 2.0, 3.5, 4.0, and 4.5 (52.0 KiB, 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., 18 Downloads; Since: August 29, 2012)]
[  Play Wave Files and Windows System Sounds using VB .NET (14.1 KiB, This is shows how to use vb.net to play wave sound files using the new SoundPlayer Class in the 2.0 version of the DotNetFramework. The Soundplayer is likewise in .NET 3.5, .NET Framework 4.0, and 4.5. Which also means its compatible with VB.NET 2005, Visual Basic 2008, Visual Basic, 2010, and the new VB 2012 ide versions., 20 Downloads; Since: August 29, 2012)]
[  Playing Wave Files as an Embedded Resource (136.6 KiB, Shows adding a .wav based file to your project and then setting the Build Action to Embedded Resource. Shows how to access the wave file through The Reflection.Assembly class and accessing the: GetManifestResourceStream stream to pass to the wave player. Uses the SoundPlayer class in .NET 2.0 and above to perform the playback of the .wav file. The source code should be completely compatible with VB 05, VB 08, VB 10, and VB 12., 218 Downloads; Since: August 29, 2012)]
[  Playing Movies and/or Videos on the Windows Desktop with Transparency (27.3 KiB, This is a simple example of how to playback videos and movies using the windows desktop as the parent for the movie screen. It also has code to set the opacity/transparency level of the movie screen from basically invisible to opaque. It can play all of the popular movie formats and just install the codec's for other formats like mpeg4 divx, quicktime mov, and many more. It uses the MCISendString media interface for the playback. It actually uses part of my csMovie Library class. The player doesn't get placed completely behind the icons on the desktop. So it wouldn't be considered a wallpaper video player., 26 Downloads; Since: August 29, 2012)]
[  RichTextbox Control (Example Wordpad Starter) (46.3 KiB, This 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 csWritingPad v1.5 example for VB.NET 2002/2003 that highlights a very great many of the RichTextBox features., 258 Downloads; Since: August 29, 2012)]
[  ScreenShot/SnapShot Desktop Example (13.2 KiB, 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., 22 Downloads; Since: August 29, 2012)]
[  Sending EMail using the SMTPClient Class and/or Google GMail (13.0 KiB, 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), VB 2010, ect... 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., 25 Downloads; Since: August 29, 2012)]
[  Simple Zipping and Unzipping Files (583.8 KiB, This is a basic example of how to use the DotNetZip class library to compress and zip-up and decompress and un-zip files. It only highlights the basics of the DotNetZip library though. There are many more features than what I have in the example. I do have other code outlined in the on how to get zip and unzip progress information and how to make a self-extracting .exe file using the same DotNetZip library. This is made with VB.NET 2008 but the source code itself is compatible with VB 2005, Visual Basic 2010, and VB 2012., 40 Downloads; Since: August 29, 2012)]
[  Stop Watch Class (13.4 KiB, An 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..., 19 Downloads; Since: August 29, 2012)]
[  String Dictionary Class Example 05/08/10/12 (13.7 KiB, Very simple and easy example of how to use a StringDictionary collection to store pairs of strings as a key and a value. It shows how to add, remove, clear, find, and count the items in the collection., 19 Downloads; Since: August 29, 2012)]
[  SysMonLite Application v1.0 (104.7 KiB, 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. Or in other words it will display text in the notify icon tray., 16 Downloads; Since: August 29, 2012)]
[  System Information Source Code (14.0 KiB, Shows 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., 26 Downloads; Since: August 29, 2012)]
[  System Tray/Notify Icon (15.6 KiB, 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...., 20 Downloads; Since: August 29, 2012)]

5 comments:

  1. i am in need of sample project for connection to access

    ReplyDelete
  2. Hi this is a very nice and informative blog. keep it up.
    Free download bca project

    ReplyDelete
  3. Hi,

    This blog is really informative and very helpful to me.

    ReplyDelete
  4. For Free VB projects, MCA Projects, MBA Projects Just Visit
    Free VB Projects Downloads

    ReplyDelete