Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Remove X(Close) button from windows forms

$
0
0

Hi,

I need assistance in removing X(close) button from windows forms. I used WPF to create XAML file and added to powershell script and used system.windows.forms to generate GUI. I could get all functionality but i ran in problem to remove close button.

Failed attempts:

> $window.controlbox = $false.

>In wpf used windowstyle='toolwindow' but still getting close button.

When i google i could get C# code but i couldnt replicate that in powershell.

Can anyone help me with this code.


Viewing all articles
Browse latest Browse all 6937

Trending Articles