|
-
Apr 10th, 2025, 06:49 AM
#13
Re: Form Min-Max size and Fixed-size
 Originally Posted by syntax53
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.
Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|