Posts: 20
Score: 0
Joined: 5/22/2001
From: USA
Status: offline
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!
Posts: 12
Score: 0
Joined: 5/31/2001
From: USA
Status: offline
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.