We are moving out of VB6 as quickly as we can, but in the meantime we've begun building our VB6 applications from the command line on a Build Server.
Problem: The build server has a basic video adapter and causes the forms to be truncated down to the resolution of the basic adapter rather than the Height and Width in the Form itself.
One workaround that we've discovered requires going into each Form's Load Event and manually setting the Height and Width properties to the observed sizes in the Form Properties window.
Ugh..
There are many dozens of forms involved in this application and more applications with more dozens of forms to come. I want to build a script to handle this.
Two questions:
1) Where in the code/project/etc do I find the Height and Width of the form as shown in the Properties window? A search of the *.frm file doesn't turn up any winners; neither does opeing the *.frx file and converting a known Height or Width to Hex (then searching).
2) Is there something else I can do besides edit each and every form?
Thanks in advance.
Jon