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

Image may be NSFW.
Clik here to view.

[VB6/Win7+] Using the Windows UI Ribbon Framework

Windows UI Ribbon Framework Demo - Intro This is a backport of the most basic Ribbon demo from my now 3-part series on using the Ribbon in twinBASIC. The code is virtually unchanged; just some minor...

View Article


Image may be NSFW.
Clik here to view.

[VB6, twinBASIC] DirectComposition Effects Demo

DirectComposition Effects Demo This demo is a just a basic proof of concept, a close-as-possible port of the Microsoft DirectComposition Effects SDK example. Since the demo is ported as close as...

View Article


Image may be NSFW.
Clik here to view.

VB6 - Simple way to make your VB6 application "Per-Monitor DPI Aware"

This sample project shows how you can automatically resize your form and its controls as well as adjust their font sizes whenever the current DPI changes (the user runs their desktop at a different...

View Article

Image may be NSFW.
Clik here to view.

Python embedding

I have to work across multiple languages more and more. If i need to use a python library for the most part I just write a small python script and then shell it on the command line and read its output....

View Article

Image may be NSFW.
Clik here to view.

Displaying Cyrillic in Unicode components

I was unable to use Cyrillic in the new Unicode components. I was offered to load text lines from a file, but this is inconvenient. Therefore, I wrote a small class that allows you to use Cyrillic...

View Article


VB6 Download image and automatically center in Picture1 control

Download the image and automatically center it in the Picture1 control 'References to: ' ' Microsoft Windows Image Acquisition Library v2.0 ' Microsoft WinHTTP Services, version 5.1 Code: Function...

View Article

Image may be NSFW.
Clik here to view.

VB6 - Unicode PopupMenu Captions and PopupMenu Radio Buttons

This is just a simple class for allowing Popup Menus (also known as Context Menus) to display Unicode captions. It also shows how you can use Radio Buttons (also known as Option Buttons) instead of the...

View Article

Image may be NSFW.
Clik here to view.

Python embedding w/Debugger

I have to work across multiple languages more and more. If i need to use a python library for the most part I just write a small python script and then shell it on the command line and read its output....

View Article


Image may be NSFW.
Clik here to view.

VB6 Chrome app ,Google Chrome APP mode

What is the Google Chrome APP mode? Second kill full screen mode! Have you ever encountered such a situation? I opened N web pages without noticing, and the TAB was too small to see. And then...

View Article


Image may be NSFW.
Clik here to view.

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 Article

Image may be NSFW.
Clik here to view.

Serializing 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 Article

Image may be NSFW.
Clik here to view.

MSFlexGrid: 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 Article

vb6 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 Article


Image may be NSFW.
Clik here to view.

VB6 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 Article

Image may be NSFW.
Clik here to view.

VB6 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 Article


vb6 Get Local IP,Get LAN IP

I wonder if there's an easier way? In addition, what is the simple way to obtain the Internet public IP address Code: Private Sub Form_Load() MsgBox Winsock1.LocalIP End Sub Code: Option Explicit...

View Article

Here'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 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 Article

Image may be NSFW.
Clik here to view.

VB6 - 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 Article

vb6 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 Article
Browsing all 1476 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>