Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Browsing all 1502 articles
Browse latest View live

GetProcessFileName by pid

Code: Public Declare Function GetCurrentProcess Lib "kernel32" () As Long Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long Private Declare Function CreateToolhelpSnapshot Lib...

View Article


Image may be NSFW.
Clik here to view.

Pratt parsers and the building blocks of a scripting language.

This sample application is an implementation of a Pratt parser written in pure VB6 code. It demonstrates the use of the Parser to validate syntax and construct an expression tree from a text...

View Article


Image may be NSFW.
Clik here to view.

Label Printer

I was given several boxes of 8.8cm X 2.4cm tractor fed labels. Not having tracker feed on my printer , I cut and taped a strip of labels to an 8X10 sheet of card stock and made this app to print on...

View Article

Image may be NSFW.
Clik here to view.

Pattern Brush Fill

Not much here, just an example that creates a very simple bar chart about "pie" (thus the silly name "Pie graph" in the Caption). Shows the use of bitmap images for tiled fills when drawing. Nothing...

View Article

Some help pls

Hi , l have an array of say 30 picture boxes (pic(1),pic(2) etc) each having a different image and not in sequence l have another array of 30 empty picture boxes (mic(1),mic(2) etc) in sequence This is...

View Article


Image may be NSFW.
Clik here to view.

My Simple Marquee

I know this has been done several times before , but wanted to share my version of it. It's resizable and colors can be changed. I wanted the speed to be smoother but this was the best I could come up...

View Article

VB6 modArrInfo (Array-introspection without Error-Handlers)

Since there's so many often badly written (or incomplete) Array-check-routines floating around, here's a Drop-In-Module (you might name it e.g. modArrInfo.bas). With that, you can then perform complete...

View Article

Image may be NSFW.
Clik here to view.

Color Pickers six different styles

There are six small color programs here , all user controls, dealing with color selection. See if any are any help for you. The color names was written by Robert Rayment (one of my favorite programmers...

View Article


Image may be NSFW.
Clik here to view.

Voronoi Draw

This is a fun app using flood fill . Original code is by David Rutten but I have highly modified it to create this drawing app . All it does is past time . Oh yes, pictures can be saved to use as...

View Article


SHA3_224 for vb6,Hash224 for vb6

Code: Sub MAIN() TestSHA3Functions End Sub Sub TestSHA3Functions()     ' Create a new test Dim SHATestTxt As String   SHATestTxt = "Cc123456" MsgBox SHA3_224(SHATestTxt) & vbCrLf & "The...

View Article

[VB6] Draw 2D shapes using Signed Distance Function

Draw 2D shapes using 2D Signed distance Function. Calculate distance from each pixel to each shape and compute its RGB value. Do not use (DX) GPU HLSL, with which it would be very much faster. 2D SDF...

View Article

Image may be NSFW.
Clik here to view.

VB6 Web Site/App Server

This project helps you serve web sites/apps with VB6. It is a work in progress. It will eventually become a DLL, but for now it is an EXE project while under development. It includes a number of nice...

View Article

Inter Process Communication between Outlook VSTO addin (in VB.NET) and VB6 App

I wrote applications in VB6, and an Outlook VSTO addin (in VB.NET) that communicate directly with the VB6 App. Based on email in Outlook, I wanted to send information to be shown in the VB6 app. 2 ways...

View Article


Image may be NSFW.
Clik here to view.

Setup at runtime a form as a MDI child, export the MDI form as a normal form

This code shows how to set a MDI child forma as classical form And vice-versa Code: ' #VBIDEUtils#************************************************************ ' * Author          : ' * Web Site...

View Article

Image may be NSFW.
Clik here to view.

Generate a EPC QRCode for SEPA mobile Paiement

This code is used to generate QR code that can be used to initiate SEPA credit transfer. The QRCode can be saved as BMP or JPG. The code is using the DLL qrcodelib.dll. The QrCode generated in the...

View Article


IBAN Validator

This code check if an IBan account is valid or not Code: Debug.Print IBAN_Validator("BE72000000001616") Code: Option Explicit Private Const IbanCountryLengths As String =...

View Article

Image may be NSFW.
Clik here to view.

Code to validate Eurpean VAT number and retrieve informations on the company

This code is used to validate an European VAT number using the WebService Vies (provided by the European Commission) It retrieve also the informations of the company Sample of use Code: Private Sub...

View Article


Code to determine if the VB6 App is running under a Terminal Server Session

Code to determine if the VB6 App isrunning under a Terminal Server Session Code: Private Const SM_REMOTESESSION = &H1000 Private Const SM_REMOTECONTROL = &H2001 Private Declare Function...

View Article

Image may be NSFW.
Clik here to view.

VB6 Pick Color from Screen Usercontrol

Just a little usercontrol I made to get a color from the screen . Uses API's so it should work on most OS. Drop it in your project and go. Try it and see if you like it. As always , have fun with it....

View Article

Display a list of connected users to a MS Access DB

This code reads and display the .LDB file generated by MS Access where informations about connected users are logged. The use : Debug.Print Global_ReadAccessLockFile("D:\YourDatabase.ldb") and will...

View Article
Browsing all 1502 articles
Browse latest View live


Latest Images