A little question: change color of text in msgbox?

Leen

Registered User.
Local time
Today, 14:45
Joined
Mar 15, 2007
Messages
56
Hi,

I have a msgbox and I'd like to have the colour of the text in a different color:

Code:
If tblexists = False Then
        MsgBox ("Table RAILWAYS is not present in the database")
        
     Else
        MsgBox ("OK: Table RAILWAYS is present in the database")
    End If

In the first case, I want the text to be in red, in the second case in green.

How do I know where to find this information?
I looked in the help at: Msgbox Function/ VbMsgBoxStyle (Object Browser) but do not find information on how to put the color for the text?

Thanks!

Maybe just a very general question:
In the objectbrowser, you can choose between Access/ADO/DAO/.. these are all different kinds of "object-oriented-models". I usually always look at DAO but how do you know in which language to search when you have a problem? Can you mix them?
 
I may be wrong, but I don't think you can do this with a MessageBox as the colours are defined by the Windows setup.

You can however create your own message boxes using a label, then you can change the coulours of text and backcolour to suit.

Col
 
Thanks,

I think using labels will be the only possibility after searching and searching.. (I was looking for a very quick way)

Bye,
Leen
 

Users who are viewing this thread

Back
Top Bottom