A Custom Message Box ActiveX Control

CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

This is an ActiveX control that will produce a message box. This code is based upon Netscape’s new message box. I have modified this code to suit my own needs.

Screen-shot

The MessageBox code is wrapped up in a control, but could quite easily be converted to a DLL depending on your requirements. The control shows the dialog with one line of code :

CustomMsgBox1.MessageBox msg, miInformation, msOk, _
                              "Custom Message Box"

Download Zipped Project Files (43k)

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read