Hi everyone, as of now my app is put at the middle or my screen… my question is, what is the exact size of a form that should fill the entire screen of the computer? Thanks and God bless.
Intellisense tells you these are screen width and height. Well, in tho loose sense of screen=display, not _SCREEN=screen.
What's less often discussed is that the area you have for your app can be smaller, if the toolbar is shown. There are two symmetric calls that take that into account and give you the size a maximised form will have as Sysmetric(21) and Sysmetric(22).
You can also get more details, take a look at what intellisense options pop up, when you type Sysmetric and the opening bracket.
If you set the form's WindowState property to 2, then the form will fill the screen. But you will still see the form's title bar and borders. If that's not what you want, you should also set the TitleBar property 0, and the BorderWidth also to 0. But if you do that, make sure you have some way for the user to close the form, because they won't be able to see the built-in Close button.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.