Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 311

PowerShell GUIs • Resizing a form in code

$
0
0
To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build:Powershell Studio 2025
Operating system:Windows 11
PowerShell version(s):

*** Please add details and screenshots as needed below. ***

DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM


I'm trying to resize my form using code. I've put the following lines in the _Load event, yet it stubbornly refuses to resize
$formLogon.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterScreen
$formLogon.ClientSize.Height = 750
$formLogon.ClientSize.Width = 1500
I've also used Size instead of ClientSize.

Any ideas what I've missed?

Statistics: Posted by IanUoY — Fri Jan 17, 2025 7:40 am — Replies 2 — Views 80



Viewing all articles
Browse latest Browse all 311

Trending Articles