Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1478

VB6 IDE Window Auto-Resizer Add-in with Visual Configurator

$
0
0
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:
Quote:

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
Installation:
Register the Add-in:

Copy WindowsSizeDefaultVB6.dll to C:\Program Files (x86)\VB6 Addins\
Run: regsvr32 "C:\Program Files (x86)\VB6 Addins\WindowsSizeDefaultVB6.dll"

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

Option 2: Manual Configuration File
Create C:\Program Files (x86)\VB6 Addins\WindowConfig.txt:
ini[FormWindow]
Width=800
Height=600
Left=400
Top=100

[CodeWindow]
Width=900
Height=700
Left=350
Top=80
Technical Details:

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

Name:  Add-Ins Manager for Activate WindowsSizeDefaultVB6 Menu.jpg
Views: 75
Size:  19.0 KB

Name:  Add-Ins Manager for Activate WindowsSizeDefaultVB6.gif
Views: 69
Size:  18.3 KB



==================================================
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...
==================================================
Attached Images
  
Attached Images
Attached Files

Viewing all articles
Browse latest Browse all 1478

Trending Articles



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