Changing a Messagebox font

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Is there a way to change the messagebox font in a VB.NET/
C# Windows Application? I have been trying it using the
API SystemParametersInfo without much luck.
Any help would be greatly appreciated.

Thank you

Sam
 
Herfried - I do not want to change the Icons or sounds..
just the font. I have gone thru a ton of MSDN documentation.. including
some MFC... which is why I believe that I may be able to change the
System font for message boxes using the GDI LOGFONT type with
NONCLIENTMETRICS in the following API call -

SystemParametersInfo(SPI_SETNONCLIENTMETRICS, 0, NCInfo, 0)

(NCInfo is an instance of NONCLIENTMETRICS type).
Using the same functions I can also restore the Original settings
(before I altered them in my application).

The only problem is I cant get it to work..... :)

Thanks
Sam
 
Back
Top