Page 2 of 2

Re: Sometimes Form Modal or Non-Modal

Posted: Monday 5th December 2022 4:55pm
by gambafeliz
At the moment the closest thing to what I'm looking for is setting Form1 utilities=True

But the problem is that it can't be resized.

Re: Sometimes Form Modal or Non-Modal

Posted: Tuesday 6th December 2022 11:59am
by thatbruce
Yes, no it cant. One of those things about utility windows is that they use the design size.
Search me?

Re: Sometimes Form Modal or Non-Modal

Posted: Tuesday 6th December 2022 1:01pm
by BruceSteers
gambafeliz wrote: Monday 5th December 2022 4:55pm At the moment the closest thing to what I'm looking for is setting Form1 utilities=True

But the problem is that it can't be resized.
A modal window can be expanded larger than the initial size set in the IDE but not shrunk smaller.

The answer...
Make the Form size in the IDE form designer the Minimum size required, lets say 100x100

In Form_Open() event resize it to the desired size..
Me.Resize(500, 300)

Window now opens with size 500x300 and can be resized down to 100x100

Re: Sometimes Form Modal or Non-Modal

Posted: Tuesday 6th December 2022 5:27pm
by gambafeliz
Very good :)

I salute you. Thanks, I didn't know, I already thought about changing the size in Form_Open but I see that the user cannot shrink the window and that may be a problem, at whim on the part of the user.

Hey, thank you very much for your interest.

Note: I don't find any problem in my code, seriously, even if you are right.