Search found 14581 matches

by jvierra
Thu Oct 29, 2020 2:38 am
Forum: PowerShell GUIs
Topic: Grid: keep focus when refresh(?)
Replies: 1
Views: 6

Re: Grid: keep focus when refresh(?)

The only way I know of is to save the selected row and reselect it after the refresh.
by jvierra
Wed Oct 28, 2020 2:16 am
Forum: PowerShell GUIs
Topic: Write-Progress not showing when compiled
Replies: 4
Views: 62

Re: Write-Progress not showing when compiled

You need to select the Windows host in the settings for the packager. See the documentation for detailed instructions/
by jvierra
Tue Oct 27, 2020 1:57 pm
Forum: PowerShell GUIs
Topic: Problem with GUI, button removed
Replies: 6
Views: 60

Re: Problem with GUI, button removed

Looking at you display s43ettings shows that you are using a non-standard aspect ration which does not translate into 92X92 DPI. This will cause the forms built on this to display as you see on monitors set to normal settings. The setting is likely on a laptop which may be its maximum resolution. If...
by jvierra
Tue Oct 27, 2020 1:04 pm
Forum: PowerShell GUIs
Topic: Problem with GUI, button removed
Replies: 6
Views: 60

Re: Problem with GUI, button removed

If you are moving from or to a HiDpi monitor then you will have to use techniques to detect this and adjust the position and size of thee controls in code. There is no other way to do this although you can just create two scripts from forms designed at two resolutions.
by jvierra
Tue Oct 27, 2020 9:51 am
Forum: PowerShell GUIs
Topic: Write-Progress not showing when compiled
Replies: 4
Views: 62

Re: Write-Progress not showing when compiled

It is hard to understand the exact reason for you question. "ProgeessBar: is a GUI control. "Write-Progress" is a PowerShell command. You can use either one or both.
by jvierra
Mon Oct 26, 2020 9:43 am
Forum: PowerShell GUIs
Topic: Problem with GUI, button removed
Replies: 6
Views: 60

Re: Problem with GUI, button removed

You need to anchor the button to the bottom and right sides of the form. This should keep it within the visible frame.
by jvierra
Fri Oct 23, 2020 3:52 pm
Forum: PowerShell GUIs
Topic: Adding Items to ListView
Replies: 2
Views: 99

Re: Adding Items to ListView

I recommend reading and studying the following article on the control. It will help you understand what it is and how it can be used. Also note that the InfoCenter has all of the articles needed to learn basic use of WinForms with PowerShell. https://info.sapien.com/index.php/guis/gui-controls/spotl...
by jvierra
Fri Oct 23, 2020 3:33 pm
Forum: PowerShell
Topic: MsgBox need help
Replies: 1
Views: 103

Re: MsgBox need help

This is a link that will help you when using WinForms. Look to the left for more articles:

MessageBox Control
by jvierra
Thu Oct 22, 2020 1:12 am
Forum: PowerShell
Topic: ok
Replies: 1
Views: 97

Re: Globals.ps1

Globals.ps1 is only used in forms projects.

To use functions and variables across scripts include them as "shared".
by jvierra
Wed Oct 21, 2020 9:23 pm
Forum: PowerShell GUIs
Topic: Resolution issues
Replies: 20
Views: 341

Re: Resolution issues

Set" tells the app the mode to use and to be DPI aware. Here is a full explanation of what HIDPI means in Windows along with how to think about it and use it. It will not explain everything. It is up to you to spend enough time with the documentation for this and Windows forms development to underst...