Ok, this is a VB6 Add-In to change the default size of Code windows. On my computer, I always delete the VBW files. So, when I open code windows, their width is some "default" size. On my computer, this is 477 pixels. I'm not positive that this number is the same for everyone. If it's not the same for you, you will need to change that constant in the source code. The following is the line of code you'll need to change:
When opening a Code window, if it's that width, it'll be changed to 1200 pixels. If you want a different number for the new width, you'll need to change the following line of code:
There's also a timer that monitors for newly opened code windows. The timer is set to raise its event at every 250 milliseconds. I felt that this was slow enough to not affect anything else, but fast enough to not really be noticeable for any Code window user interface. (Sometimes, you can "just" see it, but it's no big deal, especially considering it's just for developers, not end-users.)
That's about it.
Just download it, and re-compile it, saving the DLL wherever you place your other VB6 IDE Add-Ins.
I've also included a DllReg.vbs and DllUnreg.vbs, but you don't need them. The Add-In's DLL is automatically registered when you (re)compile it. If you wish to use these VB_Script files, just drag any DLL onto them and they'll do what they say.
Enjoy.
Code:
Private Const VB6_IDE_Default_Code_Window_Width As Long = 447&
Code:
Private Const Desired_Code_Window_Width As Long = 1200&
That's about it.
Just download it, and re-compile it, saving the DLL wherever you place your other VB6 IDE Add-Ins.
I've also included a DllReg.vbs and DllUnreg.vbs, but you don't need them. The Add-In's DLL is automatically registered when you (re)compile it. If you wish to use these VB_Script files, just drag any DLL onto them and they'll do what they say.
Enjoy.