Category Archives: Visual Basic 6 (VB6)

TitleBarHeight

This is a very small function which is potentially useful for those who know where/how to use it. I used this function on several of my projects already if you’re wondering if this code has any use at all. I’ll post some of them later. This function also demonstrates the use of control arrays and loading objects during… Read More »

ASCII_TO_EBCDIC

Convert ASCII strings into EBCDIC code to upload into an IBM mainframe. This code may be used also as a basic encrypting method. Both ASCII to EBCDIC and EBCDIC to ASCII are included in this code. Original Author: Aldo Vargas Code Function ascii_to_ebcdic(ByVal buffer As String) As StringDim ascii As VariantDim i As Long, bufferlen As Longascii = Array(… Read More »

ASCII Generator

Generates ASCII Value for every known character to a textbox. Good for developement using character…and stuff.NOTE: PEOPLE WHO DOWNLOAD AND RAN THE ZIPPED VERSION OF THIS CODE MAY HAVE A VIRUS ON THEIR SYSTEM CALLED WIN95.CIH. YOU CAN LOOK IT UP AT NORMAN.COM. IF YOU ARE ONE OF THESE PEOPLE PLEASE DELETE THE FILE AND RUN A SYSTEM… Read More »

QueryUnload

How to prevent a form/app from unloading , even if you use the taskmanager? Then try this code… (It works for me 😉 Original Author: Riaan Aspeling Side Effects Make sure you DO have a way of closing your form/app Code Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer) ‘To cancel the unload make the cancel = true. Don’t… Read More »

Duck Shoot Game

Create your own duck shoot style game, you can even kill your best buddy, just get a picture of him!!! Original Author: Ed Hockaday API Declarations Code Leave Picture1 blank, make Picture2’s picture a “kill picture” (so when the target is hit a bullet hole appears in it) and make Picture3’s Picture the blank target (ie an “unwounded target”)Copy… Read More »

EBCDIC_TO_ASCII

Convert a string in EBCDIC format downloaded from an IBM mainframe to ASCII format. Original Author: Aldo Vargas Inputs An EBCDIC string. Returns An ASCII string. Code Function ebcdic_to_ascii(ByVal buffer As String) As StringDim ebcdic_to_ascii_tab As VariantDim i As Long, bufferlen As Longebcdic = Array( _  &H0, &H1, &H2, &H3, &H9C, &H9, &H86, &H7F, &H97, &H8D, &H8E, &HB, &HC, &HD,… Read More »

GetWindowSnapShot

This allows a VB program to capture either the screen or the program window.It has been tested under Win95 and NT4.0. It derives from a routine by Dan Appleman (VisualBasic 5.0 Programmer’s Guide to the WIN32 API, page 303) which unfortunately does not work reliably under all conditions. Dan Appleman’s exhaustive preliminary tutorial, though, is all it takes… Read More »

rtf2html-2.1

This code recieves RTF code as output by a Rich Text Box in VB or MS Word. It outputs the equivalent in HTML. It’s in a somewhat BETA form in that it handles a number of but not all of the possible codes. If you encounter a code it doesn’t properly convert just send it to me and… Read More »

B-Spline

Draws a B-Spline over a PictureBox while the user inputs a series of points with the mouse.It also allows to drag the Control Points of the B-Spline to modify it Original Author: Federico Rahal Assumptions ‘Create a new project, Project1 is created by default‘Add a new module and name it modSpline‘‘Change the name of Form1 to frmSpline‘Add a PictureBox,… Read More »

Auto Update 2000 Edition

Auto Update 2000 Edition – This is a major update to my once old Auto Update Program. This new version can use both ftp and http. And its really easy to use. All the source code is included. Original Author: Thomas Oliver Jr. Attachments File Uploaded Size CODE_UPLOAD1306812262000.zip 9/3/2020 3:45:00 PM 5459