How to remove "Close" button from New-Grid ?

Mar 15, 2013 at 6:23 PM
Hi,
Is there any way to remove "Close" button from New-Grid ?
Coordinator
Mar 20, 2013 at 4:17 AM
Are you talking about the close button on the window? If so, the only way to get rid of the close button is to use -WindowStyle None, like this:
New-Window -WindowStyle None { New-Grid -Width 200 -Height 200 } -Show
Of course, you can still close that window with Alt+F4, but people don't seem to know about that. You can also get rid of the window border completely by specifying the -AllowsTransparency parameter ...
Mar 20, 2013 at 10:01 AM
Thx ! I was trying to use "-WindowStyle None" but obviously it dosen't work for New-Grid.