Disabling "MyApp has stopped working" dialog

When an application crashes on Windows Server 2008 SP1, I get this message box:

MyApp has stopped working
Windows is searching for a solution...

How can I prevent this message box from appearing?

Update: What I really need is to make no dialog appear. I have formulated my real intent in another question.


To completely disable this message box, set the registry value (HKLM or HKCU)\Software\Microsoft\Windows\Windows Error Reporting\DontShowUI to 1.

http://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx