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[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[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 ArticleVB6 - 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[VB6] Another Method for Loading/Drawing PNG
I've known about this method for quite some time and even use it in some of my projects. But haven't seen it applied elsewhere. So, I thought I'd make it more known with an example. We know there are...
View Article[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 ArticleNew 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[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 Articlelite 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[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[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 ArticleVB6 - 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 ArticleVBFlexGrid 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 ArticleVB6 - FisherYates shuffle
Attached is a short demonstration of the FisherYates 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 ArticleVB6 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 ArticleLayered 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[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 ArticleVba sql
I was working on the below code and having an issue with it as I want to have the code cycle through all offices and pull all the names by department for example Admin it will show for example all 3...
View ArticleFormatNumber 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