by Morgan Haueisen (22 Submissions)
Category: VB function enhancement
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (11 Votes)
Update 11-24-03 This does everything the standard msgbox does plus more and it is all in one file. It uses all the standard parameters for selecting the buttons, icons and sounds; which means it is a direct replacement for the standard msgbox. It automatically adjusts its size based on the amount of text to display (in the caption or the body of the message). What makes it different are the following:
1. Display it centered or at the current mouse position.
2. Display it with no buttons and close it through code only.
3. Display it so that it automatically closes after a specified number of seconds.
4. Display it as a modal or non-modal form.
5. Display 5 additional system icons.
6. Uses a more modern look, rounded corners and a yellow background to make it easer to read.
7. The special Help button is treated as any other button, returning a value when pressed.
8. The Ok button is not shown by default. You need to add the vbOkButton parameter to make it show.
9. NEW: Added an Inputbox function (frmMsgBox.sInputBox) with the same look and feel as the msgbox.
Download MsgBox and InputBox Replacement (Release 2.0) (21 KB)