Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Ensure form always on screen

Posted on 2008-11-07
1
Medium Priority
?
183 Views
Last Modified: 2012-05-05
If a form is shown at a position on screen but it too tall or wide to be fully shown, could the form 'automatically' reposition to ensure that the whole form is always shown within the boundaries of a form or screen ?
0
Comment
Question by:hairybarbarian
1 Comment
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 375 total points
ID: 22902802
You can use the Screen object to see if a form will fit on the screen/desktop/monitor

If you only have 1 monitor:
Screen.WorkAreaRect provides the bounds a form can use

with Screen.WorkAreaRect
    Application.MainForm.SetBounds(Left, Top, Right, Bottom);
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question