MSGBOX font size

Posted on 1998-10-20
Last Modified: 2013-12-03
How can I change the font size of the msgbox prompt? Changing the form default size dosn't do it.
Question by:Neal Hartman
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 12

Expert Comment

ID: 1440838
MSGBOX font properties are controlled by your desktop and without API calls not directly accessable to VB.

WATY, you gots the API's for this gent?


LVL 14

Expert Comment

ID: 1440839
I think the best and easier solution is rewriting a complete message box. I have coded a complete message box. If you want I can send you the code.

mark, at this moment, I don't see any way using API to change the font in a messagebox. We don't have the hand on a messagebox, it is modal once it is executed, so we could not change the properties of the messagebox.
LVL 13

Expert Comment

ID: 1440840
Waty is right
LVL 12

Accepted Solution

mark2150 earned 100 total points
ID: 1440841
Was wild guess Waty, you seem to have an API call for *everything* (grin).

Anyway, you can change MSGBOX fonts, etc, but only by changing the entire desktop. If you just want *your* stuff to look different from everyone elses, seems like you're SOL.


LVL 14

Expert Comment

ID: 1440842
mark2150, there are a lot of API under Windows, a lot of them are very useful (take a look at the MSDN), I don't know all the APIs.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question