Search found 59 matches

by ALIENQuake
Fri May 11, 2018 4:26 am
Forum: PowerShell GUIs
Topic: Timer vs BackgroundWorker
Replies: 3
Views: 1660

Timer vs BackgroundWorker

Hi, Powershell Studio uses Timer for Add-JobTracker and provide a Timer control for the ToolBox. I found another approach for background job: BackgroundWorker. I successfully used it for my 'pure c# Windows Form' project, now I wonder: What are differences between those? Does anyone have experience ...
by ALIENQuake
Fri May 11, 2018 2:24 am
Forum: PowerShell GUIs
Topic: Add-JobTracker - Job miss functions
Replies: 5
Views: 1602

Re: Add-JobTracker - Job miss functions

Yep, that is something which looks much better and doesn't feel like "hack". Thanks.
by ALIENQuake
Thu May 10, 2018 12:03 pm
Forum: PowerShell GUIs
Topic: Add-JobTracker - Job miss functions
Replies: 5
Views: 1602

Re: Add-JobTracker - Job miss functions

I know, I just wonder if there is a better way that this @""@. Module might be ok but when you are dealing with compiled script to exe i won't help. Maybe Add-JobTracker should importa all variables and functions. Good idea for extension?
by ALIENQuake
Thu May 10, 2018 10:40 am
Forum: PowerShell GUIs
Topic: Add-JobTracker - Job miss functions
Replies: 5
Views: 1602

Add-JobTracker - Job miss functions

Hi, I use Add-JobTracker for form timer in order to create responsibe UI. The background code is executed using: Add-JobTracker -JobScript { Set-Something (Get-Something -Reverse) } -CompletedScript { Param ($Job) $jobGUI = Receive-Job -Job $Job | Select-Object -Last 1 if ($jobGUI -eq $true) { Set-S...
by ALIENQuake
Sat Dec 16, 2017 3:18 pm
Forum: PowerShell GUIs
Topic: Using Font from included exe resource
Replies: 4
Views: 1778

Re: Using Font from included exe resource

OK but how to use it with Powershell and SAPIEN Powershell Form Project?
by ALIENQuake
Thu Dec 14, 2017 1:55 pm
Forum: PowerShell GUIs
Topic: Using Font from included exe resource
Replies: 4
Views: 1778

Using Font from included exe resource

Hi,

I would like to use my own font. I can add this font as executable resource. But how I can setup for eg:

Code: Select all

$labelButton_EXIT.Font = 'Franklin Gothic Demi Cond, 14.25pt'
to read font from executable resource?
by ALIENQuake
Thu Dec 14, 2017 2:30 am
Forum: PowerShell GUIs
Topic: Borderless Form - how to move with Mouse1?
Replies: 3
Views: 2055

Re: Borderless Form - how to move with Mouse1?

Thank you! It's working.
by ALIENQuake
Wed Dec 13, 2017 5:47 am
Forum: PowerShell GUIs
Topic: Borderless Form - how to move with Mouse1?
Replies: 3
Views: 2055

Borderless Form - how to move with Mouse1?

Hello,

does anyone have code example how to move Borderless Form when Mouse1 is pressed? I want to have simple borderless window with 4 labes (Start, Readme, Homepage, Exit) on it and ability to move all form with mouse, that's all.

Any advice?
by ALIENQuake
Thu Jul 06, 2017 3:21 am
Forum: PowerShell GUIs
Topic: Cross platform GUI for Powershell
Replies: 1
Views: 818

Cross platform GUI for Powershell

Hello everyone, I'm long time lurker here.

Since Powershell 6 is now cross-platform, what GUI framework I can use to create Powershell-based GUI app which will work for Windows, MAC and eventually linux?