Windows form with PowerShell Rounded corners

Biswajeet Kumar 116 Reputation points
2021-06-22T05:11:21.643+00:00

Hey pros,

I am working on some UI using PowerShell form. I am wondering, Is there a way to make the corners of the form little rounded?
I usually start my form like this :

Add-Type -AssemblyName System.Windows.Forms
$Form = New-Object system.Windows.Forms.Form
$Form.ClientSize = '550,240'
$Form.FormBorderStyle = 'Fixed3d'
$Form.text = "Pre-Requisite Check "
$Form.BackColor = 'White'
$Form.TopMost = $true
$Form.ShowDialog()

Thanks.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,826 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,361 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,571 Reputation points Microsoft Vendor
    2021-06-22T08:34:19.713+00:00

    Hi,

    This could be helpful

    https://stackoverflow.com/questions/66327195/can-i-have-rounded-corners-on-my-form-in-powershell

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful