form caption alignment (1 Viewer)

amir0914

Registered User.
Local time
Yesterday, 23:48
Joined
May 21, 2018
Messages
151
hi guys,

I want to change direction of form title (caption) and I do it manually with space(" "), is there a way to change alignment automatically to center with vba or function??

thanks in advanced.
 

missinglinq

AWF VIP
Local time
Today, 02:48
Joined
Jun 20, 2003
Messages
6,423
I think that the only other way would be to set the Form's BorderStyle Property to None, then create a Label, up against the top of the Form...set it's alignment to your desired one, and set it's background color to look like The Form's top would if you didn't have the BorderStyle Property to None.

Sounds like a lot of work, but probably easier than adding leading Spaces, loading the Form, checking the alignment of the Caption, going into Design View, and repeating until it is aligned to your liking.

Linq ;0)>
 

Users who are viewing this thread

Top Bottom