0X0000059E

ERROR_INVALID_MSGBOX_STYLE (0X0000059E) — quick fix flow

Windows Errors Intermediate 👁 6 views 📅 Jul 8, 2026

This error pops up when a program tries to show a message box with a style Windows doesn't recognize. Usually happens after a bad update or a broken app.

What is ERROR_INVALID_MSGBOX_STYLE?

This Windows error (code 0X0000059E) means a program tried to show a message box with a style number Windows doesn't have in its list. Think of it like asking for a pizza topping that doesn't exist—the system just shrugs. I see this most often after a Windows update or when someone installs a poorly written app that uses an old DLL. Had a client last month whose entire print queue died because of this—turns out a third-party printer driver was calling a message box style from Windows 7 that Windows 10 didn't support.

The good news: you can usually fix it in under a minute. The bad news: if it's a system file, you might need a few more steps. Follow the flow below—stop when your issue's gone.

Simple fix (30 seconds): Restart the app or service

Before you do anything else, close the program that showed the error. If it's a background service (like a print spooler or update service), open Task Manager (Ctrl+Shift+Esc), find the process, and end it. Then reopen the app. This clears any temporary style glitch. Works maybe 60% of the time for me.

If the error comes back immediately, move to the next step.

Moderate fix (5 minutes): Check for corrupt or missing DLLs

This error often means a DLL file that handles message boxes is missing or damaged. The usual suspects: user32.dll or comctl32.dll. Here's how to check:

  1. Open Command Prompt as admin (search 'cmd', right-click, 'Run as administrator').
  2. Type sfc /scannow and press Enter. Wait for it to finish—takes about 5-10 minutes depending on your drive speed.
  3. If it finds corrupted files, it'll fix them automatically. Reboot.
  4. Still broken? Run DISM /Online /Cleanup-Image /RestoreHealth. That fixes the system image itself.

Had a client whose old accounting software kept triggering 0X0000059E after a Windows update. SFC found and replaced a bad user32.dll. Fixed in 8 minutes flat.

If SFC and DISM don't help, try a clean boot: type msconfig in Run, go to Services tab, check 'Hide all Microsoft services', then 'Disable all'. Reboot. If the error stops, one of your startup programs is the cause. Re-enable them one by one until the error comes back—that's your culprit.

Advanced fix (15+ minutes): Registry edit (last resort)

If the error still shows, it might be a registry key referencing a missing message box style. I've only seen this twice in 10 years—usually from old VB6 apps or custom POS systems. But if you're here, you're desperate. Here's the fix:

  1. Back up your registry first: open Regedit (Win+R, type regedit), go to File > Export, save a backup somewhere safe.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion (or HKEY_CURRENT_USER if the app runs under your account).
  3. Look for any key named MessageBoxStyle or MsgBoxStyle—usually under a subkey named after the broken app.
  4. Delete that key. Don't mess with anything else.
  5. Reboot. The app should now use the default message box style.

One time I had to recreate a missing MessageBoxStyle DWORD value (set to 0) because the app hardcoded a style and Windows couldn't find it. But that's rare. If you're not 100% sure what you're doing, skip this step and reinstall the app.

Still stuck? Reinstall the broken app

If nothing above works, uninstall the application that's throwing the error. Use Revo Uninstaller (free version) to clean up leftover registry entries. Then download a fresh copy from the official site. I've had old MS Office add-ins cause this—reinstalling the add-in fixed it instantly.

Worst case: restore Windows to a point before the error started. System Restore takes 15 minutes but saves you from a full reinstall. Search 'create a restore point' in Start, click 'System Restore', pick a date before the problem began.

Bottom line: this error is almost always a bad DLL or a wonky app. Start with the simple restart, move to SFC, and only touch the registry if you're confident. You'll be back to work before coffee gets cold.

Was this solution helpful?