Hello Robbie,
Thanks!
So basically, If I want the size of the window to be 6000 by 8000 (height by width).
I have to do this.
-
Me.ScaleMode = vbPixels
-
Me.ScaleHeight = 6000
-
Me.ScaleWidth = 8000
-
Is it correct ?
No, unfortunately you can't do it by changing the ScaleWidth and ScaleHeight. -_-
That won't change the size at all.
Use the little code example I gave before, at the bottom of my post.
You're going to need to work in pixels instead of twips though, and 6000 by 8000
pixels is unbelievably big. It's going to have to be nearer
600x800.
Just replace in my code where I put WidthInPixels with 600 and HeightInPixels with 800.
-
Me.Width = 600 * (Width / ScaleWidth)
-
Me.Height = 800 * (Height / ScaleHeight)
Put that code there and you should see what I mean. Only change the 600 and 800 bit though, to what you want your form size to be, in pixels. Sorry that it seems we need to change from twips to pixels, but that's why I don't use twips, because the size they represent changes if your display resolution does, e.g. in 800x600, 1 twip is not the same size as it is in 1024x768