|
-
Apr 9th, 2025, 09:27 PM
#12
Junior Member
Re: Form Min-Max size and Fixed-size
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.
Last edited by syntax53; Apr 13th, 2025 at 11:10 AM.
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
|