MsgBox - MB MsgBoxEx (Active X Control)

No need for a fancy message box as you can create your own using a standard form. You can add any buttons you like, use any color and place it anywhere on the screen...

Jack
 
I suppose I could do that. But wouldn't this be easier to use to control what happens in code execution?

e.g.

Select Case msgboxEX

Case msgboxEX = 1
Do this 1

Case msgboxEX = 2
Do this 2

Case msgboxEX = 3
Do this 3

Case msgboxEX = 4
Do this 4

End Select

Since you could have a msgbox with has buttons with your text (see the sample application for MB MsgboxEX). Mind you, I still have no idea how to use it!!

Or is there an equivalent to do that with a form called from another form based on what button you press on the called form?
 
It would appear that 'MB MsgboxEX' (though I did not look for the specific item as I saw that the forum was about VB) is a VB form and VB forms are not the same as Access forms.

I am not sure what it is you want to do, but you can certainly use a Select Case statement to determine which button was pressed using the Message Box. The only thing is that the number of buttons on the Message Box are limited whereas any form you create can give you as many as you like.

If you can give a specific example of what it is you want to do I will try to give you a specific answer, but I cannot guarantee that I will have the answer that you need....

Jack
 
Jack,

Here is the link.

http://www.vbcity.com/mbgallery/default.asp?comp=mbmsgboxex

This is the summary:
This control is an extended and object-oriented version of the VB's MsgBox function. You can center the message box on your form or place it everywhere you want, display any icon, and change the caption of every button. You can finally create a standard dialog with the Yes, Yes to All, No, No to All buttons, or any other combination you want.

http://www.vbcity.com/mbgallery/MBMsgEx.gif

It's not that there is anything in particular that I am trying to do, but this ActiveX control (as well as the others) could be usefull.

Imagine having a VB buttons with mutiple buttons, custom caption text, custom icon!!

See this link for all the ActiveX controls. Kinda cool, but I don't know how to use them.
http://www.vb2themax.com/MBGallery/Controls.asp#
 
Just for fun, I would like to know: is it possible to, without creating a form with a button of your own, change the tekst on for example the vbOkOnly button from OK to Macaroni or something else....
Using localization tools from MS which are used to translate certain apps and tools without having to re-write / compile / distribute the application, that would be possible. But when doing that, the new text would be called always, all the time, from everywhere in windows where the common buttons are called. So using VBA, can it be done for for example, just one error, or one application?
 
Last edited:
on the "make your own button" question. Yes you can, if you make a picture your button and just make it function like a button. ie OnClick Event for that picture
 
Ok, so the other thing is out? Or too much of a hassle maybe? I just think it would indeed be nice to have your own comments and "decision options" since it is your own application. If used correctly, it could take away a lot of the dullnes and crypticness of errors for some users that are already scared of the mouse when they see it. If you are designing for a company it won't be appreciated if a message contains a "Yes, i'm an idiot" button, but for friends, family or "non-official" people (don't know how to express that in proper english any other way) such things could be nice.
 

Users who are viewing this thread

Back
Top Bottom