Picture1.Left=0
Picture1.Top=0
Me.Height=Picture1.Height
Me.Width=Picture1.Width
~
Scale mode for both are twip. Both have auto redraw on.
~
Has always given me problems. I usually fixed this by adding more to either height and width. Recently, I noticed that changing the Title bar settings ( in windows display options ) changes this dramatically.
Every code I have seeninvolving form height and width seemed to point towards the interior of the form, and not include the title bar.
I have uploaded a picture for an example. ( A. is to show the size of the picture i want the form to match )
Anyone have a idea how to make this code work correctly nomatter what the users titlebar settings are? Possibly a way to grab the height of the title bar.
Thanks ahead of time...![]()




Reply With Quote