Message Box Default Reply

The new Message Box Default Reply component provides an easy way to intercept any MessageBox calls and provide a default reply.

Services

There are no services associated with this component.

Associated Components

No other components interact with this component.

Settings

The following table shows the configurable settings for this component.

Setting Default Description
Disable messageBox Popup Selected Checking this disables the display of all the Popups generated by the MessageBox Function. This is selected as the default.
Severity log level Log all events Choose the severity of MessageBox messages to be logged. Selections range from logging all messages to logging only errors. Logging is disabled when "Disable MessageBox Popup" is unchecked.
Log message information to event log Selected Selecting this logs the MessageBox Information to the Event Log.

Notes

The default setting of the Message Box Default Reply components Disable MessageBox Pop-up property can cause certain features that activate a pop-up message box, such as unchecking the 'Hide protected operating system files (Recommended)' in Explorer, to fail. To get around this issue, the default setting of "Disable MessageBox Pop-up" should be unchecked at design time or the user should set the following registry key value to '0' at run time:

HKLM\System\CurrentControlSet\Control\Error Message Instrument : EnableDefaultReply = 0

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.