Quote Originally Posted by syntax53 View Post
I am testing out the code here and it's mostly working, so thanks. I have something I ran into where I can't pin-point the issue. I have a workaround, but posting in case I run into sometime similar later or if anyone else runs into the same thing...

I have sub forms of a main form I am loading, all being subclassed to control min/max width with this solution, and some with modal to the main form. On at least one form in particular, that is nothing more than a form, a textbox, and a timer control (disabled), is giving me a "run-time error '400': Form already displayed; can't show modally" upon load. I've disabled all code during load, leaving nothing but subclassing and positioning (startup position: 0 - manual) and found that if I position the form (.top and .left) after subclassing it, then I get the error, but if I move it prior to subclassing (opposite of what is suggested), I do not get the error ...? Doesn't matter if I'm on the primary monitor or secondary.

edit: accidentally reversed my "prior" and "after" on initial post.
Syntax, is it possible for you to post a VBP zipped project that illustrates this? Personally, I don't see how simple subclassing can affect the way VB6 handles the modality of its forms.