Category Archives: Visual Basic 6 (VB6)

The differences between Get, Set and Let

One question a VB programmer is asked a lot about, especially in a job interview, is the differences between let, set, and get.  Now some of the advanced programmers out there might laugh, but you”d be surprised at how many beginning developers trip up on this.  I”ve asked the question of interviewees myself.  So, in hopes of helping out budding programmers,… Read More »

Multiple Clickable Bitmaps on a drop menu in a for

Very short code! Newly updated and it WORKS! Display bitmaps instead of text on a drop menu, in a form. Use the VB Menu Editor to create a menu with sub menus, the code does the rest!! So easy you will slap yourself for using other people’s lengthy drawn-out codes. Original Author: Patrick K. Bigley Assumptions Create a form… Read More »

A 3D Demo

This is a simple demonstration on 3D programing using line based graphics. This program allows the user to manipulate an object in a 3D enviroment. The functions include rotation, scaling, translating, and zoom control. Original Author: Drew Stickney Attachments File Uploaded Size CODE_UPLOAD996.zip 9/3/2020 3:45:00 PM 85961

rsform.bas

This .bas module allows you to re-size your form and all the controls re-size with it. I kept looking for code out on the internet that would do this right but I was never successful. So, I wrote this to eliminate the need for any ocx’s or dll’s. It resizes the SStab control which I found was a… Read More »

Draw a moving starfield on a form

It draws a moving starfield on a form with simple VB graphics methods and a timer control. Original Author: Theo Kandiliotis API Declarations Code How to draw a moving starfieldThis example shows how to design a moving star field ,the standard animated background used in most space shoot’em up games.You know,the one that asteroids of all kinds of sizes… Read More »

a very small picture viewer in one minute.

Your own homemade picture viewer in ONE minute, supports at least jpg, gif, bmp, pcx & many others Original Author: Happy Coder Inputs nothing Assumptions nothing Returns nothing Code ‘add following code to your formVERSION 4.00Begin VB.Form Form1Caption  = “Very simple picture viewer”ClientHeight = 9450ClientLeft = 1140ClientTop = 1515ClientWidth = 11460Height  = 9855Left  = 1080LinkTopic = “Form1″ScaleHeight = 9450ScaleWidth = 11460Top  = 1170Width  =… Read More »

Passing a control array

Working with control arrays in VB3 was frustrating, but with VB4 you can pass a control array as an argument to a function. Simply specify the parameter type as Variant: Original Author: VB Pro Code Private Sub Command1_Click(Index As Integer)GetControls Command1()End SubPublic Sub GetControls(CArray As Variant)Dim C As ControlFor Each C In CArrayMsgBox C.IndexNextEnd Sub Also, VB4’s control arrays… Read More »

**Area Of Circle Calculator**

This code allows the user to find the area of circle by clicking a command button and then typing in the radius of the circle. It is very helpful to anyone working on a calculator project. I am also coming out with area of triangle and square. Original Author: Brady Botkin Code ‘ Step 1. Place a command button… Read More »