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

PowerShell • System.drawin.sizeF

$
0
0
Hi,

Since this morning my forms is appearing badly. Colums are overlapping so label are overlapping text box.
I compared various version export
And found in my latest export:

Image

Code:

$formOutilDeMiseEnProduct.Controls.Add($labelVersion05)$formOutilDeMiseEnProduct.Controls.Add($labelDate)$formOutilDeMiseEnProduct.Controls.Add($labelMEQ)$formOutilDeMiseEnProduct.Controls.Add($labelFrançoisRacine)$formOutilDeMiseEnProduct.Controls.Add($tab_MEP)$formOutilDeMiseEnProduct.Controls.Add($buttonExit)$formOutilDeMiseEnProduct.Controls.Add($LabelTcomplete)$formOutilDeMiseEnProduct.Controls.Add($labelTraitementDesDonnées)$formOutilDeMiseEnProduct.Controls.Add($TXTServeur)$formOutilDeMiseEnProduct.Controls.Add($labelServeurDeSite)$formOutilDeMiseEnProduct.Controls.Add($ComboBoxSiteProv)$formOutilDeMiseEnProduct.Controls.Add($labelCodeDeSite)$formOutilDeMiseEnProduct.Controls.Add($buttonQuitter)$formOutilDeMiseEnProduct.Controls.Add($buttonMEP)$formOutilDeMiseEnProduct.Controls.Add($buttonNext)$formOutilDeMiseEnProduct.Controls.Add($buttonPrev)[b]$formOutilDeMiseEnProduct.AutoScaleDimensions = New-Object System.Drawing.SizeF(96, 96)[/b]$formOutilDeMiseEnProduct.AutoScaleMode = 'Dpi'$formOutilDeMiseEnProduct.AutoScroll = $True$formOutilDeMiseEnProduct.AutoSizeMode = 'GrowAndShrink'$formOutilDeMiseEnProduct.ClientSize = New-Object System.Drawing.Size(1513, 784)$formOutilDeMiseEnProduct.Name = 'formOutilDeMiseEnProduct'$formOutilDeMiseEnProduct.StartPosition = 'CenterScreen'$formOutilDeMiseEnProduct.Text = 'Outil de Mise En Production de trousses (OMEPt)'$formOutilDeMiseEnProduct.add_Load($formOutilDeMiseEnProduct_Load)
I found by AutoscaleDimensions at 96,96 the form is almost correct. But I don't see how adjusting it from powershell studio directly. How may I set it from the Powershell studio interface?

Since a year I am maintaining this form. Yesterday, at office on my PC it was looking good. Today the export from yesterday on my laptop and PC everything is almost fine. But if I run from Powershell studio or export the issue is appearing. The only difference is the AutoScaleDimensions setting.

I read from here:https://info.sapien.com/index.php/guis/ ... i-displays that I don't have to set it. OK so now what? Actually, after I export I get 120,120 instead 96,96. What should I do?

Thanks,

Statistics: Posted by DIT-Acquisition — Wed May 08, 2024 6:51 am



Viewing all articles
Browse latest Browse all 546

Trending Articles