Discussion Locked

display size of frmMain

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

My frmMain in Visual Basic 6.0 displays only
a fourth (1/4) of its normal size when loaded at run time. What am I doing wrong.

5 replies

by miss kitty

on your frmMain properties, go down to Window State and change it to maximized. It should keep it's size unless you have coded it elsewhere to be another size.

by rsv

HI,
Just write this in the form load event

Me.Width = Screen.Width
Me.Height = Screen.Height

and set the form's startupposition property to "CenterScreen"

This makes your form to be displayed center and full screen.

Hope this helps you.
GOOD LUCK...:)

This discussion is closed to new replies.