VB6 IDE Window Auto-Resizer Add-in with Visual Configurator
Sorry, a little error in the code, new version, almost equal, but corrected...
=================================
Hello everyone,
VB6 has always frustrated me with its tiny default window sizes that can't be easily changed. Every new form, module, or code window opens annoyingly small, especially on FullHD monitors. After years of constantly resizing windows (and muttering under my breath), I worked with Claude AI to create this Add-In.
This tool lets you set your preferred default sizes for form designers and code windows. Once configured, all new windows automatically open at your chosen size - no more manual resizing hundreds of times per day!
The Add-In is smart: it respects your manual adjustments and won't touch windows you've already positioned. It also detects saved projects with .vbw files and leaves those alone. It's helpful without being intrusive.
Hope this saves you as much time as it's saving me!
Regards...
///////////////////// VB6 IDE Window Auto-Resizer Add-in with Visual Configurator
Stop manually resizing VB6 IDE windows forever!
After years of frustration with VB6's tiny default window sizes, I've created (with Claude AI's help) a professional Add-in that automatically resizes and positions all IDE windows exactly where you want them.
Key Features:
1.- Automatic Window Resizing - Form designers, code windows resize automatically
2.- Smart Detection - Only resizes new windows, respects existing .vbw saved positions
3.- No Flicker - Ultra-fast 50ms timer ensures smooth operation
4.- Window Memory - Remembers processed windows, won't interfere when you manually move them
5.- Visual Configurator - Included utility lets you visually set sizes by pointing at existing windows
6.-Professional Installation - Proper registry integration, custom icon, loads on startup
How It Works:
The Add-in monitors VB6 IDE windows using a timer
When a new window opens, it automatically resizes and positions it
If you move a window manually, it respects your choice
Projects with existing .vbw files keep their saved positions
Add Registry Entry (save as .reg file) - exists in the zip a reg with this name "RegistrarWindowsSizeDefaultVB6.reg" -:
regWindows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Visual Basic\6.0\Addins\WindowsSizeDefaultVB6.Connect]
"FriendlyName"="Windows Size Default for VB6"
"Description"="Auto-resize and position VB6 IDE windows"
"LoadBehavior"=dword:00000000
Enable in VB6:
Open VB6 ? Add-Ins ? Add-In Manager
Check "Windows Size Default for VB6"
Check "Load on Startup"
Configuration:
Option 1: Visual Configurator (Recommended)
Run the included SetWindowsSizeDefaultVB6.exe
Position your mouse over a VB6 window sized how you like it
Click to capture those dimensions
Save configuration
Uses Windows Timer API (no forms required)
Implements IDTExtensibility2 interface
Checks for .vbw files to respect saved layouts
Processes each window only once
Full source code included
Requirements:
Visual Basic 6.0
Windows (tested on Windows 10/11)
Microsoft Visual Basic 6.0 Extensibility reference
Source Code Structure:
WindowsSizeDefaultVB6.vbp - Add-in project
ConnectWindowsSizeDefaultVB6.cls - Main Add-in class
basTimerWindowsSizeDefaultVB6.bas - Timer callback module
frmConfigWindowsSizeDefaultVB6.frm - Configuration form (optional)
VB6 Window Size Configurator.vbp - Visual configurator utility
This Add-in has transformed my VB6 development experience. No more "grrr" moments resizing windows hundreds of times a day!
Credits: Developed with assistance from Claude AI Feel free to modify and improve! If you have suggestions or find bugs, please let me know.
/////////////////////
PDF with Instructions in Attach and Also All the Code
==================================================
Sorry, the video didn't explain that you first need to create a directory in:
C:\Program Files (x86)\VB6 Addins
And copy and extract the Zip file there. If you want to change it, since it comes with the source code, you can change it to another directory in the code...
==================================================
Last edited by James Reynolds; Jul 10th, 2025 at 07:51 PM.
Re: VB6 IDE Window Auto-Resizer Add-in with Visual Configurator
Quick Start Guide (Rapid Implementation):
Get up and running in 2 minutes!
Create directory:
Open CMD as Administrator
Execute: mkdir "C:\Program Files (x86)\VB6 Addins"
Extract the ZIP:
Copy "VB6 Change Default Window Size Configurator.zip" to the directory above
Extract all files there
Register the DLL:
Still in CMD (as Administrator)
Execute: regsvr32 "C:\Program Files (x86)\VB6 Addins\WindowsSizeDefaultVB6.dll"
You should see "DllRegisterServer succeeded"
Install Registry entries:
Double-click RegistrarWindowsSizeDefaultVB6.reg
Click "Yes" to add to registry
Enable in VB6:
Open VB6
Go to Add-Ins -> Add-In Manager
Find "Windows Size Default for VB6"
Check both boxes as shown below:
That's it! All new windows will now auto-resize. ?
For personalization, execute: C:\Program Files (x86)\VB6 Addins\SetWindowsSizeDefaultVB6.exe
Best Regards...
Last edited by James Reynolds; Jul 9th, 2025 at 01:58 PM.
Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.
By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.