I have a gui where i want to move the tabcontrol1 when a specific tab is selected and change the size to
How do i change the size?
tried this but doesnt work?
$tabcontrol1.Size = New-Object System.Drawing.Size (660, 633)
tabcontrol1 - how to change location and size?
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: tabcontrol1 - how to change location and size?
The following method can be used to change the size and location of the TC.
https://learn.microsoft.com/en-us/dotne ... tem-int32)
https://learn.microsoft.com/en-us/dotne ... tem-int32)
Re: tabcontrol1 - how to change location and size?
thanks
this did the trick
$tabControl1.Location = New-Object System.Drawing.Point(12, 93)
$tabControl1.Size = New-Object System.Drawing.Size(660, 560)
this did the trick
$tabControl1.Location = New-Object System.Drawing.Point(12, 93)
$tabControl1.Size = New-Object System.Drawing.Size(660, 560)