Message box questions

Just a few questions about message boxes.

First of all, can i put in a customized icon in my message box? If so, how?

Secondly, I have heared you can make your own custom message boxes using dialog boxes, this true?

Thirdly, is there a way of changing font colour in message boxes?

Lastly, Can i place an image in a message box, watermarked so that text above it can be read?

Thanks for any input

David
HelixAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
0
aelatikCommented:
Helix,

You can draw a form in the way you want and use it like a messagebox. You can put OK and CANCEL buttons and program it to act the same way as a message box.

The only important thing is to disable other forms while showing the custom messagebox form. This way your messagebox won't lose focus.

0
BuchankasCommented:
As I know there are two ways you can do that, first by doing as aelatik said, and making sure you show your message-box form as modal, using the "vbModal" constant. Second you could make use of an API which alters the ordinary message-box to a more user-defined style, but it is much more complex.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

khushbooCommented:
Can you clarify your first question? Are you asking to put an icon in a question box or are you trying to create your message box after clicking on certain buttons to display message box? Please clarify to provide you an answer.

Secondly, you cannot create a customized message box using a dialog box however you can use create it by using input box.

Lastly, I don't think you can change the text color or put an image in a messagebox.


0
khushbooCommented:
Can you clarify your first question? Are you asking to put an icon in a question box or are you trying to create your message box after clicking on certain buttons to display message box? Please clarify to provide you an answer.

Secondly, you cannot create a customized message box using a dialog box however you can use create it by using input box.

Lastly, I don't think you can change the text color or put an image in a messagebox.


0
pkmnfrkCommented:
1. In the intrinsic VB msgbox function, no. The icons are fixed by the OS.

2. Yes, you can make customized message boxes, but they are only masquerading as message boxes. You must also make sure to show it as modal:

frmBox.show vbModal

3. Again, no. I am sure that you can do it with the Windows API, but I haven't tried. Or, if you use #2 (above) then you can do whatever you need.

4. No. See #3.
0
JuleZzZCommented:
I think the best method of doing this would be to create a class/object of a similar messagebox to suit your needs then you can use it throughout your projects.
0
cofneverlivetotellCommented:
Just make a form and set the Border style to 3-Fixed dialog.  Add a few buttons and set it to come up centre screen.
0
CleanupPingCommented:
Hi Helix,
This old question (QID 20568005) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0
cofneverlivetotellCommented:
You can make your own message boxes quite easily;


Use the command ;

Msgbox "Caption", Icon, "Message"

Where it says caption, put in the caption you want the message box to have (Like Internet Explorer Error Message)

Where is says Icon, put a number to represent the icon(I am in school and I will post another message when i check the numbers at home)

Where it says message, put in the body text (Like Do You want to save your changes)

Hope this helps!

I will post the numbers in a few hours

Cofneverlivetotell
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.