Tutorials
These tutorials contain step by step graphical guides to several visual basic programming concepts and tools. Note that they are not necessarily in progressive order!
Tutorial
Description
Authors
Introduction to Visual Basic Part 1
  • A very basic demonstration and example of some controls and events
  • A simple example of how to program a listbox 
  • MSDN: what it is, how to get at it
  • MSDN sample programs online: how to get at'em
Mike Rounding
James
 Tam
Introduction to Visual Basic Part 2.
  • Database example using the Data control
  • Saul's Sketchpad demo
  • Saul's Advanced Sketchpad demo
Mike Rounding
James Tam
Saul
 Greenberg
Accessing databases using the ADO Data Control
Mike Rounding
James Tam
Accessing databases using the Data Environment control
Mike Rounding
James Tam
Creating a simple HelloWorld ActiveX control in Visual Basic
Saul Greenberg
How to register your ActiveX Controls on the Computer Science machines
Mike Rounding 
Building a Ticker ActiveX Control with the ActiveX Control Wizard
Mike Rounding
Rod
 Stephens
Building a Transparent ActiveX Control that lets you click on a non-rectangular image
Mike Rounding
Shaun
 Kaasten
Dynamic queries and databases: simple example on how you can use sliders  to build a query to a database
Mike Rounding
The "Bitton" control, beginning guide to building ActiveX controls a few different ways along with some ActiveX explanation
Mike Rounding
This program demonstrates dragging and dropping from explorer and between forms and also includes a cool control moving code module.
Mike Rounding
Saul Greenberg
This is a step-by-step tutorial for how to integrate Macromedia Flash into your VB applications. Complete with instructions on how to pass information back and forth and also how to remotely invoke Flash methods right in VB!
Mike Hornby-Smith
Programs
Project 
Description
Authors
A simple hello world program that illustrates a basic VB program as well as the command button and timer control.
Saul Greenberg
We use this nonsense program as a first VB exercise for students to do.
 
The left figure shows when it looks like when the program is executed, while the right shows what happens after the user has clicked the button 3 times and selected the checkbox, and moved the mouse over the form. Try to program this yourself. It uses a command (or button), a label, and a checkbox. 
James Tam
These two vb Projects illustrates two ways to cycle through images stored in a local directory. Each demonstrates different controls for accessing files, while both show a control for displaying images.
Saul Greenberg
A marquee (an automatically scrolling text region) is used to illustrate a Timer, a status bar and a checkbox control, and simple graphical repositioning,
Saul Greenberg
An example of how to use listboxes (as well as how to put images into buttons). This example lets you move items between lists.
Rod Stephens, modified by Saul Greenberg
Illustrates how to play a wave file in Visual Basic. It works by declaring a function to the WIN32 API sndPlaySound .
Don't be intimidated: its two lines of code!
Saul Greenberg
Illustrates two simple sketchpads. The first one is only about 6 lines of code, and just illustrates some very basic graphics and event handling. The second shows how one can dynamically create controls at run time (the items on the palette), how controls can be positioned at runtime, and how controls can be resized when the window is resized. Its a longer program, but well worth going through to see how these features work.
See Tutorial 2 for step by step instructions for how these programs work.
Saul Greenberg
A simple object-oriented drawing editor that allows a user to create, move and erase squares. You can easily extend this to include different graphical classes e.g., circles, lines, etc., or to any interactive graphics. The program illustrates
  • how to do simple object-based interactive graphics in VB
  • how to use a collection
  • how to use a class
Saul Greenberg
This program is similar to the drawing editor above, but used for completely different purposes. It illustrates how to do dynamic queries on city attributes, where cities on a map are filtered immediately as a person moves a slider or checks a checkbox. While the example is simple, the possibilities of how you can enhance it are endless.
Click on the image to view it in full size.
Saul Greenberg
Illustrates how to create a very simple table lens that toggles cells between graphical and textual views.
Click on the image to view it in full size.
Rod Stephens
Illustrates how to Bitblit a picture on another picture, and how to drag it around. 
Rod Stephens
Illustrates how to use the Tree control and how to drag items around different parts of the tree 
Rod Stephens
An example application that lets a user interactively move different kinds of controls on a display.  Illustrates interactive graphics.
Saul Greenberg
Illustrates how to create a simple class that raises events
Saul Greenberg
Illustrates a database with the flex control. The database
just has two fields: name and phone. This example lets you add and remove records. To make the grid sorted, we set the data control's record source property to the SQL statment: Select * from friends order by FirstName. The record is just added to the end of the file, but the flex grid shows it sorted. See also
Tutorial 3 and Tutorial 4 for other ways to access databases.
Shaun Kaasten
Illustrates how you can clip the shape of a control or form to a variety of regions.
Shaun Kaasten

ActiveX Controls
Project
Description
Author
A tutorial and example project that shows you how to build a minimalist VB ActiveX Control Component. It just contains a label saying "Hello World" and has no code attached to it. However, it does have a toolbox control icon. Includes an example program.  
Saul Greenberg
A tutorial and example project that shows you how to build a TickerTape control out of a label. It also illustrates the ActiveX Control Wizard. 
Mike Rounding
Rod Stephens
A VB ActiveX Control that creates a 'new' type of button (actually a standard but augmented command button) that moves away from the person who is trying to click it. Includes an example program. The design was based upon a class project where students had to design a button that reflected their personality.
Saul Greenberg
This program creates a command button that will follow the mouse around.
This simple but very useful example illustrates
  • using the Extender object in a VB UserControl to access outside properties and methods
  • the use of calls from the Win32 API for finding mouse cursor coordinates
  • scaling those coordinates in terms of a container object (be it a form or another control container)
Michael Rounding
Illustrates a very crude range slider written in ActiveX. I include it to
  • show you how you can do interactive graphics (well, at least some simple stuff), 
  • how you can make an active x control that you can include in a project. 
It is limited. It does not scale its size, and I did not spend any time doing all the things that one normally does to package up a control. This is really just a quick hack. Feel free to improve it and pass it on to the class.
To use: Unzip the file into a directory. Check out the test program in a sub directory that I included. In your own project, you can include the range slider by going into  project/components and then selecting Browse. Navigate to the OCX file that will be in the unzipped directory and select it. You will see a new control that you can select.
Saul Greenberg
A tutorial program that shows you how to use the PictureClip component for creating animations.
Dave Miller, 581 student
An activeX control plus exe that shows you how to find the other controls in a form from inside an ActiveX control. Saul Greenberg used this example to build a Mr. Popularity button, where all the other controls on the form gravitate towards a Mr Popularity ActiveX button.
Chris Bradley, 581 student
Illustrates how you can build a transparent ActiveX Control that lets you detect clicks on a non-rectangular image (in the figure on the right these would be the red letters). See Tutorial 8
Mike Rounding,
Shaun Kaasten
Similar to xparent.zip, except this version follows your mouse wherever it goes around the screen - very fun. 
Mike Rounding,
 
This example includes a user control that will move itself towards any other control. This example illustrates some custom events and properties in a user control, and shows how to do do simple control animation with a timer.
Mike Rounding
 

Third Party Examples
We've found these on the web or in books, and they are too good not to include
Project
(as zip or .bas)
Description
Author
Bitmap Animation: Shows how to build a simple bitmap animation.
Rod Stephens
Transparency: A tool library to do transparency, including transparent controls.
Doug Gaede
An ActiveX control that implements a range slider. Looks pretty good!
Author unknown
Capturing bitmaps: A BAS library for capturing various portions of a screen.

Table of Contents
Section
Description
Examples relating to programming AOL or AIM add-ons.
Examples dealing with fonts, files or databases.
Examples on games or things game related.
Examples dealing with images or the manipulation of them.
Examples that have to do with the Internet.
Examples on dealing with menus.
Special effect examples.
Examples dealing with the manipulation of windows.
Examples that don't fit any where else.

AOL and AIM Add-on Examples
Code Title
Author
Code Description
Download
Add Room To List (AOL6 and below)
myst
Add the memebers of an aol chat room to a list.
AIM PW Decrypter
beerbaron
Shows how to decrypt aim passwords. [written in 2001]
AIM Screenname And PW Extract
ChiChis
This code demonstrates how to extract AIM screennames from the registry and the decrypt the password. [written in 2000]
AOL Chat Room Hook Example
Craig Jasper, Jr.
Subclassing example that shows how to determine if a newly created AOL window is an AOL chat room. [Requires SpyWorks 6; Written in VB6; Created in Win2000; Only tested for AOL 5.0 Revision 205.103]
AOL Hot Keys Example
Craig Jasper, Jr.
An example that shows how easy it is to implement HotKeys for AOL using the SpyWorks WinHook control. [Requires a licensed version of SpyWorks 6 WinHook control - DWSHK36.OCX; Tested with AOL5 and AOL6]
AOL HTML Extractor
Craig Jasper, Jr.
An example to demonstrate how to get the HTML that is the basis behind AOL's RICHCNTL via the Windows clipboard, as well as how to extract the URL data via the Windows clipboard. [Tested on AOL 7.0 Revision 4114.256]
AOL4 Chat/IM/EMail Examples
Shadow-X
Three examples that show how to send text to chat room, send text in IMs, and send text in email.
AOL7 Chat Sender Example
Source
Shows how to send text to AOL7 chat rooms.
AOL7 Instant Keyword Example
Source
Shows how to visit a website via the toolbar icon, keyword window textbox, and then keyword window icon.
AOL7 Instant Message Sender Example
Source
An example that shows how to send an instant message in AOL7.
AOL7 Write EMail Example
Source
Shows how to send email in AOL7.
Auto Fader
Xhandar
This is a 1 - 20 color auto-fader example for AOL. [Requires Dwsbc36.ocx] [Samples dos32.bas and patorjkfaderv2.bas]
Elite textbox
patorjk
This shows you one way you can change how text appears in a textbox as it's being typed.
Fader Example
sungod
This is an example on how to make a fader program. It has a pretty cool way of preview fading the text.
Macro Font Example
patorjk
This is an example that shows you two different ways to display macro fonts for macro shops.
MailBomb Fixer Example
patorjk
This is an example of a mailbomb fixer for aol4. It shows you how to get the mail list then scroll down it checking the item's text with the item you want to delete.
Room Buster/Server Helper
Xhandar
This is an project showing how to make a room buster with a server helper.
Scrambler Game Example
martyr
An example on how to make a chat room scrambler. [Note: Example is missing files and no longer works]
Sir's AOL/AIM Example
SiR
This is an example project that shows you the basics on how to make an AOL/AIM program. [comes with the sir vb6 bas]
Subclass Chat Send
Craig Jasper, Jr.
An example of subclassing an AOL 6.0 chat room's Send button and detecting when the Enter key is pressed in the RICHCNTL. Created for a ccom program, so the chat room doesn't have to see all of your commands. [Requires SpyWorks 6; Written in VB6 with Service Pack 5 installed; Created in Win2000 with Service Pack 2 installed; Only tested for AOL 6.0 Revision 4097.10523]

Fonts, Files, and Databases
Code Title
Author
Code Description
Download
Address Book DataBase
Brian Smith aka local
An example of how to create an address book. [patorjk.com VB Contest Winner]
Address Book Example
Eric Osterheldt aka Deep Arctic
An example on how to create an address book.
[Missing]
File Explorer
rude
VB example of a file explorer.
File Associations (File Type Generator)
Adam T
Shows how to create file associations so when you double click a certain file type it will open in a certain program.
Font Explorer
Xhandar
Lets you easily view your system's fonts by using an explorer-like interface.
Font Loading Example
gozer
This example shows you how you can use win32 api functions to quickly load all of the fonts on your computer.
Font Loading Example
patorjk
This example shows you one way you can speed up the loading of the fonts through a list of them to a file, then checking to see if any new ones have been added.
Open and Save Text Files
patorjk
This is a pretty simple example. I made it because I get a lot of questions on how to open and save text files.
Random Access Example
Eric Osterheldt aka Deep Arctic
Shows how to open and save a file in Random mode. Commonly used for databases.

Games
Code Title
Author
Code Description
Download
Frogger
John Harper aka Digital Rampage
A VB version of the classic video game Frogger. [patorjk.com VB Contest Winner]
High Score List Example
patorjk
This is an example I made to show you one way on how you can make a high score feature for your project.
Mine Sweeper Game Example
unknown
This is an example on how to make the popular windows game Mine Sweeper.
Rock, Paper, Scissors Game Example
Wiger
A rock, paper, scissors game example, shows how to use the Select Case statement.
Sort List by Scores
patorjk
This is an example that shows you how to sort a listbox by the score a player has (sort of like the ones in chat room scrambler games).
Tic Tac Toe
Eric Osterheldt aka Deep Arctic
This is an example that shows you how to sort a listbox by the score a player has (sort of like the ones in chat room scrambler games).

Images
Code Title
Author
Code Description
Download
Add Scrollbars to a Picturebox
patorjk
This example shows you how you can add scrollbars to a picturebox.
Fade One Picture into Another Picture
patorjk
This is an example on how to fade one image into another image using vb code.
Icon Editor
Herman Liu
An example on how to make an Icon Editor in VB.
Image Map Maker Example
Xhandar
An example on how to create an image map maker (one that generates image maps for html coding).
Macro Converter
patorjk
This takes pictures and turns them into text (or macros). I had some people tell me they were having some trouble with the macro converting code in the source code section, so I thought I'd post up an example on a macro converter.
Mosaic Maker
patorjk
An example on how to make a photomosaic image with one image (sort of like the ones my mosaicer program makes excepts with only one image).
Palette Writer
Xhandar
Shows how to write microangelo palettes, microsoft aplettes, and adobe color tables.
Picture to HTML
patorjk
This is the source code to the 1.5 version of my picture to macro program.
Zoom-in on Pictures
patorjk
This is an example on how to zoom in on pictures. Sort of like how paint brush does with that little box.

Internet
Code Title
Author
Code Description
Download
Download File
matis
Shows how to download a file off of the internet from a VB program. [Requires the INet control]
Firewall Example
Dracula X
An example on how to create a Firewall.
FTP Program Example
Unknown
This is an example on how to make an ftp program.
Get HTML
matis
Show how to get the source to a website using the inet control.
IP Chat Example
KnoB
This is an IP chat that uses encryption to send data. Made in VB6.
[Missing]
Multiple Client Messenger Server
Robert Cleaver
This is an almost complete example of a multiple client messenger server that shows all online users and allows you to instant message them.
SMPT Mailing Program
Sean Mckeown - kow
This is a simple version of how to make an smtp mailing program.
Web Browser Example
Garren aka Keith Escalade
Very nice example on how to make a web browser and how it works.

Menus
Code Title
Author
Code Description
Download
Menu Effects
dos
Shows you how to change the font and selection colors in a menu. Make sure and read comments in the example so you don't end up crashing VB.
Menu Effects
face
Another take on creating your own menu. This example uses vb forms and allows scroll out effects.
Menu Effects
Da Jokel
Another example on menu effects, this one doesn't involve subclassing.
Menu Effects
casper
Another example on menu effects, this one doesn't involve subclassing.
Run Menu Example
Synthesize
Shows how to select an item in another program's menu.

Special Effects
Code Title
Author
Code Description
Download
Draw Border With API
patorjk
This example shows you how to use win32 api to draw lines and how to draw a border with a certain thickness.
Form Background Fade
patorjk
All code in this example was rewritten. This gives your forms a cool fading top to bottom or Side to Side color effect.
HTML Desktop
Adam Wehmann
Very cool. Create your own little desktop. Read readme.txt file for more instructions/info.
[Missing]
Moving Background Example
Synthesize
Creates a cool effect with a background that scrolls to the right.
Mouse Move and Click
Eric Osterheldt aka Deep Arctic
Shows how to set the mouse position and then cause a mouse click in that spot.
Multi-Line ToolTips
Craig Jasper, Jr.
This is an example on how to make Multi-Line ToolTips.
Rounded Border Example
Chris Neuner
Example showing how to create a form with rounded borders.
Shape a Form to a Bitmap
dos
Shows you how to shape a form to bitmap.

Window Manipulating
Code Title
Author
Code Description
Download
Api Spy
patorjk
This is an example on how to make a 32 bit drag and drop api spy.
Basic API Coder
Greenmonkey
An example showing how to create a code generating program for finding windows. Also shows how to make it so the program can read add-ins.
Code Generator For Window Finding
Eric Osterheldt aka Deep Arctic
Another example on how to create the code to find windows, this one however, can create the code in VB, VC++, and Delphi.
Dock forms in VB
shock
Shows how to align one form next to another one.
[Missing]
Draw Pictures On Windows
patorjk
This is an example on how to draw an image onto another window. Like if you wanted to draw over an image on a toolbar of another program or draw over the button on another program.
Find A Window's Siblings and Children
patorjk
Shows you how to find all of a window's siblings and children.
Find Window Code Generator Example
patorjk
This is an example that shows how to create the code to find a window, just by knowing the window's handle.
Form Docking
Viper
Shows how to make it so you can drag two forms at once. Ex: When you drag form1, if form2 is attached, it will be dragged along with form1.
[Missing]
Load From Old Position
Adam V. aka sabre
Shows how to load a program in the position it was in when it was last used.
MDI & Dialog Example
Eric Osterheldt aka Deep Arctic
An example showing how to use MDIs and dialogs that they can use.
Positions Example
Pio
Shows one use for registry entries. Move the form to where ever you want it, then click the x on the form. When you load it up the next time it will be where ever you closed it.

Miscellaneous
Code Title
Author
Code Description
Download
Addition (The Hard Way)
Adam Wehmann
Performs addition on any two positive numbers. Is able to add numbers larger than 2,147,483,647 (the max range for a Long data-type variable).
Calculating Money
Eric Osterheldt aka Deep Arctic
Calculates money and shows one use for varibles of the currency type.
Color Spy Example
patorjk
Shows a couple different ways on how to make a color spy.
Compression Example
sloat
This is an example on RunLength Compression, also contains some unfinished work on LZW compression.
Creating Controls at Runtime
Clash
An example of creating controls at runtime, how to drag them around, and how to delete them.
Drag and Drop
patorjk
Ever want to know how to drag and drop images out of pictures? Check this example out.
Drag and Drop Controls
ChiChis
This example shows you how to give the user the ability to move controls at runtime with ease.
E-Note
Flyman
This is an example of a small little note taker. Takes less then 5mins to make, pretty cool and fun to play with.
[Missing]
Get ID3v2 Tag from an Mp3
Eric Osterheldt aka Deep Arctic
Gets information from an MP3 like title, artist, album, etc.
GetTickCount Example
ChiChis
Pretty simple example of the API call GetTickCount to get the amount of time since Windows was booted up.
How to Create System Restore Points
coolspot
How to create system restore points (for Windows XP). This uses Windows Management Instrumentation (WMI) which Im told is only present in Windows 2000/XP.
Key Logger
patorjk
This example shows you one way on how you can log the keys pressed on the users keyboard.
Line Drawing Example
Jim
An easy way to draw lines on a form on mousedown. It doesn't use timers, or pictures boxes at all. Even better yet, its only a few lines on code.
List Item Drag and Drop Example
Eduardo Morcillo
This example shows how to drag ListBox items using functions from comctl32.dll.
List Item Drag and Drop Example
patorjk
This example shows you one way on how you can drag items from one list and put them in another.
Math Expression Evaluator
Adam Wehmann
Shows out to evaluate math expressions given a string. Example: "5 * (3 + 1)" = "20". [patorjk.com VB Contest Winner]
MCI Example
Matt Hart
An example on how to play mid files and avi files without custom controls.
[Missing]
MouseOver MouseOut Example
gozer
This example was written to show the different ways of using the api of mouse move stuff in the mousemove event. Like creating detecting when a mouse enters and leaves the object.
MP3 Player
Jason Hensley
A basic example of using [Jason's] MP3 Class Module to create an MP3 Player that uses the winmm.dll (Uses Api). This was made using Visual Basic 6.0, but should work with any 32 Bit Visual Basic.
MPlay3
hostyle
Source code from mPlay3. Shows basic mp3 playing functions: play, pause, stop, mute, previous file and next file(play) buttons. It also has load last directory.
String Encryption
gozer
Another way you can encrypt and decrypt text. This one's a bit more complicated than the other one.
String Encryption
Dracula X
An example on how to encrypt and decrypt text.
System Information
Craig Jasper, Jr.
An example on getting system information. [Made for Win2000]
System Wide Hotkeys
Craig Jasper, Jr.
An example of system wide hotkeys without a third party control. [VB5 and up]
[Missing]
Tabstrip and Progressbar Control Example
patorjk
This is a small example on how to use the tabstrip control and the progressbar control.
Time Left Example
patorjk
This is an example on how to calculate how much time it will take to preform certain tasks. The idea will only work with things that loop over and over.
Treeview Example
Shawn N.
An example showing how to use the Treeview control found in MSComCtl.ocx.
Windows Resource Meter
Eric Osterheldt aka Deep Arctic
A resource meter that displays phyiscal, virtual, and page file memory.
[Missing]
Windows Uptime
Eric Osterheldt aka Deep Arctic
An example that shows you how to find out how long Windows has been running (in months, weeks, hours, minutes, and seconds format).
[Missing]
Word Count
Eric Osterheldt aka Deep Arctic
Shows a way of counting the number of words in a text box. Uses some Windows API.
Word Count
Eric Osterheldt aka Deep Arctic
Shows another way to count the number of words in a textbox. No Windows API functions are used here.
[Missing]

0 comments:

Post a Comment

 
  • Symbolic Constants

    What Is The Variables and Arithmetic Expressions The next program uses the formula oC=(5/9)(oF-32) to print the following table

  • Navigation For Blogger New Script

    Today we will see how to add a nice page number navigation hack blogger. The default navigation links (i.e Older Posts) is not the friend

  • How To Creat Facebook Fantasty Box

    Fantasty Look Custom Facebook Like Box To Blogger Facebook Like Box is very useful widget to show visitors the authority and love of t

  • Basic Knowladge Of Computer

    Computer is an electronic device that accepts the data from any Input Device process them according to instruction and gives the Output.Computer is an electronic device that..

  • Earn Money To Easy Way

    HI MEMBER, FIRST OF ALL HEARTY WELCOME TO OUR COMPANY.FIRST TIME IN THE WORLD WE ARE INTRODUCING A STEP BY STEP TRAINING PROCESS TO MAKE MONEYMAKE MONEY ONLINE

Top
Blogger Template - See more at: http://www.arya2014.blogspot.in
ONLINE EDUCATION Basic Computer Application EARN MONEY TO EASY WAY Make Money Online "C" PROGRAMING Introducing "C" Language