W

X

Monday, May 31, 2010

Get control over the Message Box position

Alot of the Weather Message programs display message boxes to tell the user that they entered something wrong or to ask a Yes or No question.  The built-in message box appears centered in the screen.  You cannot center it over the calling form without a bunch of win32 calls.

I took several hours this morning to write a new message box class.  This message box works like the old one and has two new features.  It can be centered over the calling form and it now has the ability to automatically close after a programmed number of seconds.

I will be working to change the existing message box calls to this new class.  Users will not have to chase after the message box when this change is completed.

No comments: