Main

IT GUIDE

EARN MONEY

 

Source Code

My Code
Other Projects

Zipped Source Code

Unsorted Code

VB Gem

Trojan(s) Source Code

 

HELP

VB Books

VB Commands

VB Functions

Online MSDN

Online Book

 

TIPS & TRICKS

Tips & Tricks

Tips & Tricks 2

 

TUTORIAL

Code Optimization

Code Optimization 2

Code Optimization 3

Games Tutorial

DirectX

 

 

MISC

Submit Code

Message Board

Guest Book

Chat

Network Tools

Favorites

NES Games

Me


 

Small projects/programs with source code written in Visual Basic 6/VB6 /Classic VB. These programs are sample programs which can be used in a complete project. They were all written in VB by me(saqibsajjad@yahoo.com).  You can download the source code and use it in your own programs.

1) CPU load monitor using graph
2) Share Scanner
3) Web Server Scanner
4) Port Scanner
5) Add icon to tray
6) Convert BMP to JPG
7) Move objects (buttons etc) at Runtime
8) Executable cannot be closed  
9) Captures Screen
10) Open/Close CD tray
11) Change Desktop Resolution
12) Displays your computer name
13) Write to file
14) Displays current Window title
15) Delete file/folder using API
16) Write message to desktop using API
17) Displays the drive type
18) Email bomber
19) Encrypted chat using Winsock control  
20) Info about a pc using environment
21) Info about file type
22) Flash window title bar
23) Flips screen using a form
24) Hide Desktop icons
25) Show/hide cursor
26) Check if Internet connected using dialup?
27) Is value in array?
28) Writes keys to a text box
29) Listview
30) Logged in Username
31) Displays MD5 Hash for any text
32) Message Box using API
33) Disable net using API
34) Net Send using IP
35) Open Dialogue using API
36) Parse string using a Delimiter
37) Read ini file using API
39) Resource file example
40) Shell any program from your program
41) Capture Screen and save it to jpg
42) Displays current Screen resolution
43) Send keys to another program
44) Display status of Windows Services
45) Simple sendkeys example
46) Start menu hide/show
47) Start a program using registry
48) Writing Text to a file using encryption  
49) Add button to title bar
50) Hide Windows tray using API
51) Time passed since last Boot up

52)  Change wall paper
53) Winsock timeout example
54) Info using environment variables (v2)
55) Anonymous Mailer
56) Read File Char by Char   
57) Get the Hard disk Serial Number
58) Search for text within given text

59) Add buttons at runtime

60) Calculate time difference

61) Add images to sub menus

62) Simple Animated Robot

63) Simplest Side Scrolling Background

64) Google Suggest Decoded


 

 

 

 

 

 

 

 

·           1) CPU load monitor using graph

                      This project lets you monitor your CPU load in different type of

                      graphs (bar, line or %age).

·           2)  Share Scanner

                      This project scans open Windows share on given IPs. It is very slow

                       as it scans only one IP at a time.

·           3)  Web Server Scanner

                      This project scans IP ranges for Web Servers and parses the header to

                      get the http server name. This is multi threaded scanner so it is very fast.

·           4)  Port Scanner

                      This project scans an IP address for open ports. This is multi threaded

                      scanner and can open any number of sockets you specify in the options so

                      it is very fast. 

·           5)  Add icon to tray

                      With click of a button, it adds an icon to the system tray.

·           6)  Convert BMP to JPG

                      By default, Visual Basic does not support conversion to JPG from BMP.

                      This project converts BMP to JPG without using external DLL or OCX.                

·           7)  Move objects (buttons etc) at Runtime

                      This very small code lets you move the buttons at run time. It is just a

                      basic example. You can move any control at runtime. You can add this to

                      your project and let the user change the default look of your program.

·           8)  Executable cannot be closed    

                      This program cannot be closed, although it can be killed by Task Manager

                      in XP.

·           9)  Captures Screen

                      4 lines of code to show how to capture the screen and display it in a

                      picture box.

·           10)  Open/Close CD tray

                      Single line code which lets you open/close the CD-ROM tray automatically.

·           11)  Change Desktop Resolution

                      Very simple example which displays all the resolution supported by your

                      monitor and lets you switch among them.

·           12)  Displays your computer name

                      Single line code which displays your computer name using an API.

·           13)  Write to file

                      Very simple code to write anything to a file.

            14) Displays current Window title

                      This is just small code which displays the current open Window title using APIs.

·           15)  Delete file/folder using API

                      Two lines of code to delete any file or folder on your Hard disk using APIs.

·           16)  Write message to desktop using API

                      This project can directly write to Windows Desktop without using any Form.

·           17)  Displays the drive type

                      This project checks whether drive is Removable/CD-ROM/Non-Removable

                      using API.

·           18)  Email bomber

                      This project lets you send massive emails to a single email address.

·           19)  Encrypted chat using Winsock control  

                      This project can be used to have IP based encrypted chat. The project contains

                      the server and client code separately. Although the encryption is not very high

                      but it will let you chat without worrying for sniffers on LAN.

·           20) Info about a pc using env        

                      There is a wealth of information hidden in Environment Variables in Windows.

                      You can tap into this by using this project.

·           21)  Info about file type

                      Using the extension of the file, this project can tell u what information Windows

                      has about the file type.

·           22)  Flash window title bar

                      This project flashes the Windows title bar several times. You can add this code to

                      your project if you want the attention of user.

·           23)  Flips screen using a form

                      This project basically captures the screen and flips it in the Form. You can scare

                      someone in thinking their monitor has gone wild.

·           24)  Hide Desktop icons

                      You can show/hide all desktop icons with a click of a button.

 

·           25)  Show/hide cursor

                      You can show/hide mouse cursor with a click of a button.

·           26) Check if Internet connected using dialup?

                      This Project checks whether you are connected using dialup or not.

·           27) Is value in array?

                      This one line function lets you find any value in any size array with ease.

·           28)  Writes keys to a text box

                      This project is a very simple key logger. IT captures the current Window title and

                      logs the keys being typed to a form.

·           29)  Listview

                     This project is a very basic example of how to add/remove items in a Listview control.

·           30)  Logged in Username

                     This project displays current username under which you are logged in Windows.

·           31)  Displays MD5 Hash for any text

                     You can get the MD5 Hash of any text using one line code (with DLL).

·           32)  Message Box using API

                     You can create a MSG box using API and use it instead of using the default Visual

                     Basic Message Box.

·           33)  Disable net using API

                     This project can disable Network (including Internet using dialup).

·           34)  Net Send using IP

                     Send messages using API to Computers on your LAN. This project can be used

                     instead of console “net send” command.

·           35)  Open Dialogue using API

                     This project lets you open a file dialogue using API instead of using any control.

·           36)  Parse string using a Delimiter

                     This project lets you parse strings which are separated by any type of

                     delimiter i.e. ‘,” etc.

·           37)  Read ini file using API

                     The settings of a program were saved in an INI file in pre Windows 95 days

                     instead of a registry. Windows still supports the API.

·           39)  Resource file example

                     This project shows you how to extract data from a resource file.

·           40)  Shell any program from your program

                     Execute external program from within your program.

·           41)  Capture Screen and save it to jpg

                     This project captures the screen and uses convert.dll to save the image in

                     jpg format.

·           42)  Displays current Screen resolution

                     One line code using API which tells your current Screen resolutions.

·           43)  Send keys to another program

                     This is a very interesting project which lets you send keys to another program.

                     The code first opens notepad and then writes some lines and saves the file to

                     desktop. You can edit the code and make it to work on any type of application.

·           44)  Display status of Windows Services

                     This project gets the list of all the services installed in Windows and tells

                     you their status.

·           45)  Simple sendkeys example

                     A very simple example of sending keys to another application. (Single line code).

·           46)  Start menu hide/show

                     This code lets you hide/show the Start Menu funnily.

·           47)  Start a program using registry

                     Small code which lets you add your program to the registry so it gets started

                     on system startup.

·           48)  Writing Text to a file using encryption  

                     This program encrypts the text and writes it to a file. Very simple encryption just

                     better than saving a file in plain English.

·           49)  Add button to title bar

                     This is a very cool project which lets you add another button in the Title bar.

·           50)  Hide Windows tray using API

                     You can hide the application tray with a click of a button using this project.

·           51)  Time passed since last Boot up

                     Small project which lets you know how long it has been since your last boot up.

·           52)  Change wall paper

                     If you ever wanted to change wallpaper with only one line of code then this is the

                     project for you.

 

 

 

·           53)  Winsock timeout example

                     A common problem faced when using MS-Winsock in Visual Basic is that there is no

                     function to control the timeout function. Default timeout in MS-Winsock is 60

                     seconds which is too long.This neat little project tells you how to restrict

                    Winsock control to timeout within specified time.     
·          54)  Info using environment variables (v2)
                     There is a wealth of information hidden in Environment Variables in Windows.
                      VB's internal Environ() function is used to get all the values, hardly 5 line code.

·          55) Anonymous Mailer

                    This software can mail to any email address without the need for external

                     smtp server.

·          56) Read File Char by Char

                     This software can read contents of any file char by char.

·          57)  Get the Hard disk Serial Number

                     Get the unique serial number of your hard disk. It can be used to lock your

                     software to specific PC.

·          58)  Search for text within given text

                     This small project will help you search for text within given text in a unique

                      way. Strangely it uses 'split' function to achieve its goal.·          

·           59) Add buttons at runtime

                     This project will let you add buttons at runtime. very simple code example.

·           60) Calculate Time difference

                     This project will let you calculate time difference between two time periods.

·           61) Insert images to sub menus

                     This project will show you a way to add images to sub menus along with text.

            62) Simple animaed Robot

                     This project will move a robot across screen and will fire when space bar is

                      pressed. It uses BitBlt API for animation.

            63) Simplest scrolling background image

                     This project will show you the simplest way to scroll an image as  repeating

                     background.

            64) Google Suggest Decoded

                     This simple project will get Google suggestions for your keywords from the

                     Google website.

 

 

 

 
 
Click here to visit The Pak Ranks