Changing a Messagebox font

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
 
S

Samit Taneja

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top