If the message box is in fact a user-drawn form, then you can do this by going into the toolbox properties of the form, and modifying the 'StartPosition' to 'CenterParent' or 'CenterScreen' for the window to be drawn in the center of the display.
Dig Deeper on Win Development Resources
Related Q&A from Samuel Colak
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.