VB6-MultiThread Download
Attached is a simplified Multithreading example based on this download: https://www.vbforums.com/attachment....3&d=1458791120 That project used winhttp.dll which had serious limitations, so I used...
View ArticleSerializing array of objects in PropertyBag
There is an interesting example of implementing a custom PropertyBag from Edanmo. Unfortunately, it cannot save arrays of objects. So I modified it a little. You can now save arrays of objects. Code:...
View ArticleMSFlexGrid: The power of the FillStyle property
Using the FillStyle property you can change a range of cells with a single command. But you always have to take care about the current selected row, col, rowsel and colsel properties. That's why I...
View Articlehow to change scriptcontrol use js9?
maybe ScriptControl The default is to use the JS5 engine, right? It's also use IActiveScriptSite?
View Articlevb6 RemoveAddIn_Self
Code: Public VBInstance As VBIDE.VBE Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long Private Declare Function LoadLibrary Lib "kernel32" Alias...
View ArticleVB6 package manager,Like NET's nuget.exe and Python's Npm.exe
Similar to nuget.exe for.NET or Npm.exe for Python, the required files and configurations for a component or control can be downloaded and automatically added to the project (or removed entirely).For...
View ArticleVB6 BezierLines via cGDIPlusCache-Helper
A somewhat less "user-code" requiring solution to a problem, which originally came up here: https://www.vbforums.com/showthread....er-(Math-Help) There's 3 Classes in this Project, which make it a bit...
View ArticleHere's some code to convert between LBA and CHS forms of drive sector addressing
Put this code in a module, and set the first 3 constants to accurately describe the drive you are working with (these are the drive geometry parameters). In the code here, I already have these set for...
View ArticleHow do I enumerate thrue the namespace on a remote server I.E ftp?
Hi everyone! Can I in some way "bind" a Ishellfolder on my local computer to a server ftp? Or do I need to expose a an Interface designed for internet? All help is aprichiaited :) Attached Images
View Article[VB6] - IK "inverse kinematics" solver for 2 segments.
Optimized IK "inverse kinematics" solver for 2 segments. Here is the optimized solution to solve the inverse kinematics problem for 2 segments. Explanation of the algorithm by the original author...
View ArticleVB6 - Capture any Window, even in background, with WinRT /...
This project is a VB6 implementation of the "Windows.Graphics.Capture" engine from the "Windows Runtime API". It demonstrates how to initialize the API, create a "CaptureItem" object for capturing...
View Articlevb6 UserControl GetContainer,Container Hwnd,Container Control Name
Code: Private Sub UserControl_Show() On Error Resume Next Dim ParentControl As Object, ParentControlName As String 'Set ParentControl = GetContainer(Parent.hWnd, ContainerHwnd,...
View ArticleRegTypelib by vb6,UnRegTypelib,Reg tlb File,RegisterTypeLib Visual basic6
Code: Dim Version As String, Tlb As String, TlbGuid As String Tlb = "c:\002olelib1.81.tlb" TlbGuid = GetTlbGuid(Tlb, Version) Debug.Print "tlb file=" & Tlb & vbCrLf & TlbGuid &...
View ArticleTo show the "properties" for a drive, printer or file.
Code: Public Enum SHOP_Flags SHOP_PRINTERNAME = &H1 'pszObjectName points to a printer friendly name SHOP_FILEPATH = &H2 'pszObjectName points to a fully...
View Article"Open As" Dialogue
Another very useful shell32 API which not been mentioned in this forum. This example is made in it's simpliest form. Many other examples as using "ShellExecute" and ShellExecuteEx" API's. It seems this...
View Article[VB6] How to embed console in a VB6 form
This is the cheapest implementation by using cExec redirection of input/output streams to emulate embedded console of cmd.exe into a black colored textbox on a VB6 form, much similar to how VS Code and...
View Article[VB6, twinBASIC] Getting the full path of all processes when not elevated
If you've used programs like ProcessHacker or ProcessExplorer you might have noticed that you don't need to run them elevated to see the full paths of all the running processes. If you've ever tried...
View Article[VB6] Event based file system watcher in single self-contained class
This is based on the similarly named System.IO.FileSystemWatcher in .Net Framework. Most of the code is hoisted from a fafalone submission here in these forums. '--- cFileSystemWatcher.cls...
View Article[RESOLVED] LVGROUP Type doesn't release it's previous values??
I'm trying to use Internet History in one LV Group and in second LV Group are the system drives populated. So good so far but I'm not able to set neither Header text or iTitleImage Image for that...
View ArticleA "Wraparound" IUnknown so the 3 members got visible.
Since IUnknown Interface (which is the stemfather of most of all the Interfaces in the Shell32 Interfaces I see it abit awkward why just this interface shall be "hidden" within the OleExp TypeLib (It...
View Article