?
Solved

Form Size

Posted on 2003-03-15
2
Medium Priority
?
145 Views
Last Modified: 2010-04-04
I need to have a form that has no border, spans the width of the screen (regardless of the screen size) but only has a certain height. In other words I want to maximize a form with no border but limit the height of the form. Also, the form needs to say at the top of the screen.

Help?
0
Comment
Question by:mdlittle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
BTecho earned 1000 total points
ID: 8145533
Hello.

Here are the steps. You can do most of the steps inside the IDE during design time.

To make a borderless form:
Form1.BorderStyle := bsNone;

To set the width to span the whole screen width:
OnCreate or OnShow event of the Form,

Form1.Width := Screen.Width;

Then just set the height like so:
Form1.Height := 10; //or whatever else you want ;-)


To make the form stay on top:
Form1.FormStyle := fsStayOnTop;

Now since the form is borderless the user can't resize the form but you can also set the Form's constraints property options MinHeight and MinWidth, that way the form will never be smaller than the number you specify.

Hope this helps!



0
 

Author Comment

by:mdlittle
ID: 8145541
Btecho, thanks. I am still looking into your other answer from my other question.
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

764 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