Font size on buttons changes when form is run

  • Thread starter mdalamers via OfficeKB.com
  • Start date
M

mdalamers via OfficeKB.com

Hi!

I have a form (frmGUI) with several identical buttons and labels on it.
In fact I made one button / label and copied it to create the other
buttons/labels and changed the button/label name and caption for the copies.

In Edit mode the font size of caption on the buttons/labels looks similar
(properties for Font say Tahoma 8 pts for every button/label).
When I run the form some button'/labels however appear to have a 10 pts font
size all of a sudden.

I can correct this by coding e.g.:
"frmGUI.lblOutPutPath.Font.Size = 8"
in the Initialise event of the form.

But I should like to know why the size is changed without me asking for it.
And I do not want to add code for every rebellious button........

Anyone any ideas?

Thanks!
 
S

Steve Rindsberg

Hi!

I have a form (frmGUI) with several identical buttons and labels on it.
In fact I made one button / label and copied it to create the other
buttons/labels and changed the button/label name and caption for the copies.

In Edit mode the font size of caption on the buttons/labels looks similar
(properties for Font say Tahoma 8 pts for every button/label).
When I run the form some button'/labels however appear to have a 10 pts font
size all of a sudden.

I can correct this by coding e.g.:
"frmGUI.lblOutPutPath.Font.Size = 8"
in the Initialise event of the form.

But I should like to know why the size is changed without me asking for it.
And I do not want to add code for every rebellious button........

Anyone any ideas?

Sometimes forms can become corrupted.
Try exporting the form from the IDE, then delete it, then re-import it.
That may help.

Otherwise, you may want to see if re-creating the form helps (hey, if there
were no pain, how would we know for sure that it's VBA???) <g>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top