Powershell coding: System.Windows.Forms.MessageBox - font size

Pieterjan Deneys 0 Reputation points
2023-06-13T10:09:03.36+00:00

I currently have a couple of [System.Windows.Forms.MessageBox] statements in a script I'm working on. Yet, my coworkers say that the default Windows font is too small for some students with vision problems. So, how can I increase or change the font size of those dialogue boxes?

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2023-06-13T15:17:39.0533333+00:00

    The size of the text in a MessageBox is determined by the system (at least by default). You can change it, but not very easily.

    https://www.codeproject.com/Articles/601900/FlexibleMessageBox-A-flexible-replacement-for-the

    https://web.archive.org/web/20091208060754/http://msdn.microsoft.com/en-gb/magazine/cc188920.aspx

    Or, you can create your own form with the appropriate buttons and text boxes, etc.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.