-
Does anyone knows how to make a msgbox with Yes, Yes to All, and No buttons? I could always make a custom form, but was just wondering if there is something internal to VB that I don't know about. Also, if I do have to make a custom form, how do I get the vbCritical or vbExclamation icons and imitate the sounds of the normal msgbox function? Thanks in advance for any help.
-
<?>
As far as I know it's a custom jobbie as there is nothing that I know of for Yes to all
When I do custom crap I use an Icon extractor and then I use an image control to display the icon or picture I use.
For sound just do a search on your *.wav files and you should find something...remember it's different on all PC's as it depends on the default sound settings..ie..Jungle, Windows Default, etc.
You can get an extractor here..Freeware
http://www.ozemail.com.au/~jaesenj/s.../software.html
-
um... can't you just make it OK
Code:
MsgBox "Hello" , VbOkayOnly, "Hi"
or
MsgBox "Hello" , 0, "Hi"
'it does the same thing
and if you were to make your custom form, just take a regular message box with the vbExclimation thing and click the PRINT SCREEN button on your keyboard. then open paint and make it the perfect size, then save the file.
also I beilve that there is a file somewhere that has that image but I'm not sure
hope that helps
-
Wow, that was fast. Thanks for the responses. Now you've got me wanting to go deeper with the sound thing. What I guess the best thing to do would be to play whatever sound they have set as default for a vbCritical msgbox or something. Anyway, I'll save that for another time... For the OK only thing - I'm doing something like when you delete a bunch of files and Windows warns you if you delete an .exe. You can say yes to delete that specific one only and then be warned again at the next one, or you can say to delete all .exe files that happen to be in the list of files you're deleting. So you really need Yes and Yes to all buttons... But thanks for the print screen thing.
-
If you do make a custom form, use vbModal to keep the form ontop and disable all other forms until the Msgfrm is unloaded.
Code:
Msgfrm.Show vbModal