Font Size

  • Thread starter Thread starter AJOLSON
  • Start date Start date
A

AJOLSON

I am trying to adjust the font size of a message box but can seem to get it
to work. This is what I have

Dim strTemp as string

StrTemp = " Test Message'

strTemp.fontsize = 12

Msgbox strTemp

Any help in coding this right would be appricated.

Andy
 
Hi Andy,

The font size of the text that you pass to MsgBox is controlled by your
Windows settings, so you will need to change them there. Of course that will
affect the font size of text in a lot of other windows. If you only want to
impact message boxes in your own program, you will need to make your own
custom message box form.

Clifford Bass
 
AJOLSON said:
I am trying to adjust the font size of a message box but can seem to get it
to work. This is what I have

Dim strTemp as string

StrTemp = " Test Message'

strTemp.fontsize = 12

Msgbox strTemp

Any help in coding this right would be appricated.


You have no programmatic control over the font size used by the MsgBox
function. If you really need to do that, you can create a dialog form of
your own for the purpose, or use one of several such that have been posted
from time to time. Here's one that looks pretty cool, though I haven't
tried it:

http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/

I don't know whether that one works only for Access 2007 or not.
 
Ok thanks. Looks like it is going to be what it is by default LOL
 

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

Back
Top