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

Image may be NSFW.
Clik here to view.

Make a modal form wich is modal by software, no with modal show

I post the code in a thread to resolve a problem, but i think this code must be here. We have a Form1 like a dialog and we wish to open a "modal" form Form2 and maybe a help form Form3 which maybe stay...

View Article


Image may be NSFW.
Clik here to view.

[VB6] Compression API: Another post-Win7 gem

Here is a wrapper class for the Compression API. This requires Windows 8 or newer. It is used here in a simple demo, which creates a 2.5MB file test.txt which is then read back and run through...

View Article


Image may be NSFW.
Clik here to view.

[VB6] Simple Unicode Textbox (Input Only)

With common controls v6 (available since XP), we can use VB's own textbox (some limitations explained later) for a simple input-only textbox, and have it accept unicode text. Of course, you can get the...

View Article

Image may be NSFW.
Clik here to view.

VB6 - EChat

Attached is a chat program called EChat, which is short for Encrypted Chat. It actually consists of 3 programs; the Client program, the Service program, and a Control program to maintain the Service...

View Article

Image may be NSFW.
Clik here to view.

[VB6] "HashTub" - a collection class

We have a very versatile Collection class built into VB6 and we also have Scripting.Dictionary. Most of the time one or the other of these is all we need. But sometimes we have a special need for...

View Article


New to Visual Basic- need help with coding for Microsoft word purposes

I am brand new to visual basic, using it to make documents within Microsoft Word 2016 easier to use. Right now I am designing a userform to ask for data to be entered into a textbox and then for the...

View Article

Image may be NSFW.
Clik here to view.

[VB6, Vista+] Finding and deleting invalid shortcuts with IShellLink and...

Dead Link Cleaner So I went looking for a utility to do this for me, and couldn't find one that either itself or its installer didn't look shady/spammy. Since shell interfaces are my favorite thing...

View Article

Image may be NSFW.
Clik here to view.

lite weight progress bar control with percent

digging through old projects and found this small control I thought I would share. very lite weight progress bar user control, drop in replacement for mscomctl one and includes some extra features like...

View Article


Image may be NSFW.
Clik here to view.

[VB6] CC6 Graphical Buttons

We have "graphical style" command buttons, but they won't accept Common Controls 6 UxTheme adjustments. However I have found a way around this: Code: Option Explicit 'Demonstrates using CommandButtons...

View Article


Image may be NSFW.
Clik here to view.

[VB6] Extending the DataGrid Control

Been playing with the DataGrid control to see if it could be usable in a project of mine. It's not a bad control, just a bit under-powered. Caveat: The code and this posting is 99% focused on using the...

View Article

Image may be NSFW.
Clik here to view.

VB6 - Unicode ListBox/ComboBox

After dilettante pointed out that the MS InkEdit Control could be used to support Unicode non-latin text, I used it effectively in one of my projects. But I was still looking for a ListBox that would...

View Article

Image may be NSFW.
Clik here to view.

VBFlexGrid Control (Replacement of the MSFlexGrid control)

This project is intended to replace the MSFlexGrid control for VB6. The "MSFLXGRD.OCX" can be replaced completly. Even though some enhancements of the MSHFlexGrid control are included, it can't replace...

View Article

Image may be NSFW.
Clik here to view.

VB6 - Fisher–Yates shuffle

Attached is a short demonstration of the Fisher–Yates shuffle. In this particular case we wanted to be able to restore the shuffle back to it's original format, so we had to ensure that the Random...

View Article


Image may be NSFW.
Clik here to view.

VB6 ThemedControls.ocx (uxTheme-based replacements for SSTab and VB.Frame)

The title says it already - this is a project which shows how to use the uxTheme.dll (without any involvement of the comctl32.dll), to render directly onto the default-hWnd of a VB6-UserControl. In the...

View Article

Image may be NSFW.
Clik here to view.

Layered Form + InkPicture = DoodleTop

One of the things we got when mainstream desktop Windows inherited the infrastructure from XP Tablet Edition was the InkPicture control. While there are lot of things you can do with this, few people...

View Article


Image may be NSFW.
Clik here to view.

[VB6] Bi-Color Dot/Dash using drawing methods

Most of us are already aware of the limitations of DrawStyle with the VB6 drawing methods (Line and Circle). The main one being that even a "dot" is more of a "dash" and more importantly that these are...

View Article

FormatNumber Function for Other VB6

If anyone can improve it, feel free, and please post your improved function this thread. Code: Private Function FormatNumber(Expression As String, _       Optional NumDigitsAfterDecimal As Integer,...

View Article


Image may be NSFW.
Clik here to view.

VB6 - IPWhois V3

IPWhois is a utility program that can be used to query Whois servers to find out where and to whom an IP address is assigned. Now why would you want to do that? There are some instances when all you...

View Article

Image may be NSFW.
Clik here to view.

Utility to generate code to create Access databases using DAO, based on a...

This utility can be used to generate the code to create an Access *.mdb database using DAO, based on a model database file. If you want to avoid shipping an empty database with your program, then you...

View Article

Image may be NSFW.
Clik here to view.

VB6 - Base64 Encoding

Below is a class to encode strings or files in Base64. The data can be sent to the class as an ANSI string, a Unicode string, or a Byte Array. The sample program provided demonstrates the usage. J.A....

View Article
Browsing all 1528 articles
Browse latest View live


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