Center a Message Box over a Form

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic 5

More information:
This code will position a message box in the center of the form. Requires VB5 or higher. Read the comments for instructions regarding how to use.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: