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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MsgBox Colors, and Pictures

Status
Not open for further replies.

neos

Programmer
Oct 28, 2000
36
0
0
CA
I am wondering if there is anyway to change the background color of a MsgBox, change the font, and style, and add my own picture, all in a message box. Even if all those can't be done in one, how would you do them seperately. This is very important. Please someone respond!
 
Hi ZebWeb

The MsbBox function is set up, as any function, to return certain values. It is not set up to change fonts and add pictures.

You might consider building an Active X control to do the tasks you want.
Aggregate Active X controls, sometimes called subclassed or composite controls, might serve your purpose. These controls contain one or more existing control, called constituent controls.

To change the font, for example, you could use the Font Dialog Box in the Windows Common Dialog Control. The Picture Box tool allows you to load images into a picture box.

The task of a MsgBox function that returns a statement could be done using the property procedures of Active X Controls.

Note that all of this would be done using Visual Basic 6, not VB Script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top