Search found 98 matches
- Fri Jan 27, 2023 2:36 am
- Forum: PowerShell GUIs
- Topic: Dot source the AppDeployToolkit Functions - debug
- Replies: 0
- Views: 2
Dot source the AppDeployToolkit Functions - debug
Have attached my project I have dot source the required AppDeployToolkit - so i can use the function from the toolkit in my project. That works fine. But i have a glitch in the logfile it create some how the logmessage is null? The output in sapien output windoes show the message fine but the log fi...
- Mon Dec 12, 2022 5:40 am
- Forum: PowerShell GUIs
- Topic: change ForeColor on textbox dynamic
- Replies: 5
- Views: 613
Re: change ForeColor on textbox dynamic
complete solution function get-checkboxLog { [System.Collections.ArrayList]$clients = @() $checkbox_log = 1 .. 6 foreach ($item in $checkbox_log) { $statuslog = Get-Variable -Name "checkbox_Log$($item)" -ValueOnly if ($($statuslog.CheckState) -eq 'Checked') { $clientname = Get-Variable -Na...
- Mon Dec 12, 2022 5:39 am
- Forum: PowerShell GUIs
- Topic: change ForeColor on textbox dynamic
- Replies: 5
- Views: 613
Re: change ForeColor on textbox dynamic
added a switch but to do my forecolor change. it works but if there isnt any other ways if (Test-Connection -Cn $client -Count 1 -ea 0 -quiet) { # online $clients.Add("$client") | Out-Null switch ($item) { 1 { $textbox_Log1.ForeColor = 'Green' } 2 { $textbox_Log2.ForeColor = 'Green' } 3 { ...
- Mon Dec 12, 2022 5:17 am
- Forum: PowerShell GUIs
- Topic: change ForeColor on textbox dynamic
- Replies: 5
- Views: 613
Re: change ForeColor on textbox dynamic
$textbox_Log.ForeColor = 'Red'
yes but is there a way so i can do it this way
$collection = 1..6
foreach ($item in $collection)
{
$textbox_Log($item).ForeColor = 'Red' # this give me an error
}
yes but is there a way so i can do it this way
$collection = 1..6
foreach ($item in $collection)
{
$textbox_Log($item).ForeColor = 'Red' # this give me an error
}
- Mon Dec 12, 2022 2:00 am
- Forum: PowerShell GUIs
- Topic: change ForeColor on textbox dynamic
- Replies: 5
- Views: 613
change ForeColor on textbox dynamic
Hi I want to change the .ForeColor on conditions Have 6 checkbox from checkbox_Log1..6 and textbox_Log1..6 I got this working so far getting info - but i want to change a property based on test-connection trying to Set-Variable -Name "textbox_Log$($item).ForeColor" -Value "Green"...
- Fri Dec 09, 2022 2:21 am
- Forum: PowerShell GUIs
- Topic: From Design / Form Size / Debug Info
- Replies: 2
- Views: 798
- Tue Nov 29, 2022 11:48 pm
- Forum: PowerShell GUIs
- Topic: Add-JobTracker - how to measure time
- Replies: 3
- Views: 1235
Re: Add-JobTracker - how to measure time
that was also my first attempt but when i got multiple Jobs running I need to know when the last one stopped to get the overall time.
So at each job end have a datetime appended to a array and from that array take the oldest date but when do i know that every think is done?
So at each job end have a datetime appended to a array and from that array take the oldest date but when do i know that every think is done?
- Tue Nov 29, 2022 9:30 am
- Forum: PowerShell GUIs
- Topic: Add-JobTracker - how to measure time
- Replies: 3
- Views: 1235
Add-JobTracker - how to measure time
I want to measure how long time the job took to finish?
how do i do that when i use the Add-Jobtracker for my functions?
how do i do that when i use the Add-Jobtracker for my functions?
- Thu Nov 17, 2022 4:45 am
- Forum: PowerShell GUIs
- Topic: The NotifyIcon Control - how do i apply the icon?
- Replies: 3
- Views: 1983
Re: The NotifyIcon Control - how do i apply the icon?
so if i want to have different icon i have to create new tooltip*
- Wed Nov 16, 2022 11:30 pm
- Forum: PowerShell GUIs
- Topic: The NotifyIcon Control - how do i apply the icon?
- Replies: 3
- Views: 1983
The NotifyIcon Control - how do i apply the icon?
https://info.sapien.com/index.php/guis/gui-controls/spotlight-on-the-notifyicon-control I use this to set the tooltip text $tooltip1.SetToolTip($textbox_SoftwareTesting, "Tooltip text") How do i apply the info icon to above tooltip on the $textbox_SoftwareTesting button chrome_c0x4fQScc8.p...