How do I change the font size of a List box in PowerShell

Question:

I am writing some PowerShell code to use for later projects. This is a list where the user selects an item from the list, and it assigns the selection to a variable. I am unsure of how to control the font size, specifically for the list box text.

Here is the code:

Answer:

Here is the MSDN for the ListBox Class. There is a property called Font. On the MSDN page for font can see all of the constructors or ways to make a Font Object. In this example, this is the one I used.

Source:

How do I change the font size of a List box in PowerShell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply