Managing Firewall Rules via INetFwPolicy2
Below provided several examples how to work with INetFwPolicy2 interface to setup Windows Firewall for your application. You'll have to connect type library via Project - References - NetFW.TLB Code:...
View ArticleCalculator Simple usercontrol
I was just messing around with some old code and came up with this calculator control. Check it out and see how it works. I used the shape control and labels for the buttons. Attached Images Attached...
View ArticleGetProcessFileName 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 ArticlePratt 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 ArticleLabel 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 ArticlePattern 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 ArticleMy 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 ArticleVB6 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 ArticleColor 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 ArticleVoronoi 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 ArticleSHA3_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 ArticleVB6 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 ArticleInter 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 ArticleSetup 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 ArticleGenerate 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 ArticleIBAN 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 ArticleCode 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 ArticleCode 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 ArticleVB6 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