• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Centering in a form!!!

How can I center a letter "E" in the middle of a form?
I still want it to be centered even if I increase the font size.
0
cheongtm
Asked:
cheongtm
1 Solution
 
setiawanCommented:
Where do you put the letter "E" on the form, using label or what ?

  You can do that by this way :
 
     set label1.allignment to center at design time
 
     label1.left = (form1.width - label1.width) / 2
     label1.top = (form1.height - label1.height) / 2
 
 

0
 
KDivadCommented:
Use after setting fontname and fontsize

With Form1
    .CurrentX = (Form1.ScaleWidth - Form1.TextWidth("E")) \ 2
    .CurrentY = (Form1.ScaleHeight - Form1.TextHeight("E")) \ 2
End With
Form1.Print "E"


0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now