Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing fontsize

Status
Not open for further replies.

Viruland

Programmer
Dec 6, 2000
61
BE
I'm trying to change the fontsize & fonttype of a message in a MsgBox? Is there anybody out there who can help me.

Thx

Live fast, die young and leave a beautiful corpse behind.
 
you cant change the font in a meesage box. Create a form with only a label and an OK button and call it in your program.

Code:
frmMessage.lblMessage.Caption = "This will show on the form"
frmMessage.Show vbModal

then in the click event of the OK button on the message form

Code:
Unload Me

Since you are showing the form modally execution will pause when the form is shown and will not continue until the user clicks the OK buton, unloading the form. You get the same behavior as an OK only message box with very little work. If you want Yes/No/Cancel type functionality you can do that too, with a little more work. Ruairi

Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top