Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Center Forms Captions
Bjornar Slettvoll 
     
4 years ago
Hei.
How do I center the form caption in Access?
Are there an option for it?
Adam Schwanz  @Reply  
            
4 years ago
I don't think you can. The best I can think of would be an event to measure the size of the form, determine where "roughly" center would be, then add leading spaces to the front of the caption to move it to the middle.
Kevin Yip  @Reply  
     
4 years ago
You can, with a trick: add leading spaces to the caption.  

If the form is to be resized, you need to use VBA (in the form's Resize event) to keep calculating the right number leading spaces to add (see pictures below).  A bit of trial-and-error may be needed since alphabets and spaces have different widths.

Caveat: for some reason only the first 128 characters of the caption are visible; anything longer is cut off.  If you have a long caption on a large form that seems large enough to accommodate a long caption, the caption won't be centered because it will be cut off, leaving a large space on the right (see picture below).

Kevin Yip  @Reply  
     
4 years ago

Kevin Yip  @Reply  
     
4 years ago

Kevin Yip  @Reply  
     
4 years ago
Another way is to make your form borderless (set form's Border Style to None).  That gets rid of the form's caption bar.  You then create a fake caption bar with a *textbox* (see picture below), for which you can use many text formats.  But then you also need to create your own maximize/minimize and close buttons, and re-create all their behavior with VBA.  You also need additional VBA to resize and move the form.  This gives you the most freedom, but of course (highly) impractical for most users.
Kevin Yip  @Reply  
     
4 years ago

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/7/2026 12:53:28 AM. PLT: 0s