Category Archives: Microsoft

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 »

Start a screen saver from your code !!!

This code, you may insert in your program, allows to start a screensaver.Many other usefull solutions you’ll find on my site: http://www.netcity.ru/~timur555/Glad to see you !!! Original Author: Timur API Declarations Private Declare Function SendMessage Lib “User32” Alias “SendMessageA” ( _ByVal hWnd As Long, _ByVal wMsg As Long, _ByVal wParam As Long, _ByVal lParam As Long) As LongPrivate Const… Read More »

Add Serial Number Registration to Your Program!

Easily add serial number registration to your programs! Comes with a serial number generator, and an example of how to implement the serial number verify code into your program! Easy to add to your own program! Check it out! Original Author: Jacob Allred Attachments File Uploaded Size CODE_UPLOAD340.zip 9/3/2020 3:45:00 PM 4898

Modem Thing

Turns your modem on and off a number of times that you define. God code for someone who is pissing you off! Original Author: Jake McCurry Side Effects There is a possability that this could mess up yor modem, but i wouldn’t worry too much about it Attachments File Uploaded Size CODE_UPLOAD341.zip 9/3/2020 3:45:00 PM 2417

D3D DirectX (!! 3D GRAPHIC !!)

This one is just perfect for lerning all the basic and advanced features of Directx 5 and higher Summary : ( Cube Sub – Sphere Sub – Animation – Clipper Device Utillization – CLEAN CODE) With this code you can create many meshes as you want verry easy !! another MUST !!!Thanks for Using the Code i wish… Read More »

RegPass

This code allows you to enter and read an encrypted password from your VB project by inserting and reading the encrypted password to and from the registry. Original Author: unknown Inputs Password Assumptions Create a Form (Form1) and on it put a Label (Label1), A TextBox (Text1)and 2 Buttons (Command1 and Command2).Cut and paste the code into the form… Read More »