Been searching for the easiest way to do this and can not find an answer.

How can I set the form.Height correctly? My code is simple, I have a button at the bottom of my window, which is forced to move down, based on the number of items above it. I want my window/form size to grow along with it. But it is always short.

I know it has to do with the conversion of my form twips to screen pixels.

Form Property:
Scale Mode = Twip
Border = Fixed

Code:
Private Const PADDING = 100

Dim SomeSpace As Long
SomeSpace = 2000

    btnOk.Top = SomeSpace
    
    Me.ScaleHeight = (btnOk.Top + btnOk.Height + PADDING) * Screen.TwipsPerPixelY

    Me.Refresh