I wanted to change the MessageBox font in my .NET CF application and found that it's not that easy (and even impossible).
some adviced to change the default font of windows , cause MessageBox uses that.
the handy way is : Desktop properties/Appearance/Advanced...
but how can i do that by code using .NET class libraries?
there's a property that gets the system default font for messagebox:
SystemFonts.MessageBoxFont
but how to set it?
i tried calling SystemParametersInfo() win32 native function in Windows XP and it worked with SPI value SPI_SETNONCLIENTMETRICS.
but in Win CE 5.0 it returns error code 1439 / ERROR_INVALID_SPI_VALUE that means setting some values like font does is not supported.
i googled and just found THIS page that listed the SPIs for Windows CE 3.0 and my SPI to set current default message box is not there.
so how can i change Windows default font for message boxes?