|
-
Dec 6th, 2016, 11:23 PM
#9
Thread Starter
Hyperactive Member
Re: Resizeable VB6 UserForms (and Unicode Form Captions)
v1.1 is now in post #1 and all the text in #1-#3 is updated to reflect some changes.
I added code in the class module to detect each time the form is moved/resized to ensure that if the top left corner of the form is outside of the range of the virtual desktop coordinates it is put back in the virtual space. The only way that doesn't correspond to a "real" monitor is if there are weird gaps in the virtual desktop space (see this article). I think the odds of a monitor disappearing is small and then further that the bottom right of the virtual space is out of view of any real monitor is even smaller.
I also took Dexwerx's advice and put the Resize event in the class module which meant even fewer lines required in each form. Now the basic resizability of the form and all of its controls only takes 3 lines of code in each form.
Tags for this Thread
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
|