Search found 194 matches
- Tue Mar 19, 2024 10:19 pm
- Forum: PowerShell GUIs
- Topic: Datagridview painting after function Set-ControlTheme
- Replies: 1
- Views: 475
Re: Datagridview painting after function Set-ControlTheme
moved from $datagridview1_DataBindingComplete to a $datagridview1_CellFormatting event and it works as expected
- Tue Mar 19, 2024 9:42 pm
- Forum: PowerShell
- Topic: Need to stop and display error if user exists
- Replies: 2
- Views: 682
Re: Need to stop and display error if user exists
like this ?
Code: Select all
$button1_Click={
if ((Get-ADUser -Filter "sAMAccountName -eq '$($User_ID_Input_Box.Text)'"))
{
$User_ID_Input_Box.Text = "User already exists"
return
}
else
{
$User_ID_Input_Box.Text = "10 second timer go"
}
Start-Sleep -Seconds 10
}
- Tue Mar 19, 2024 12:29 pm
- Forum: PowerShell GUIs
- Topic: Datagridview painting after function Set-ControlTheme
- Replies: 1
- Views: 475
Datagridview painting after function Set-ControlTheme
In the function Set-ControlTheme, I added thses vars and then added to the elseif ($target -is [System.Windows.Forms.DataGridView] to paint my dgv if ($Theme -eq 'Dark') { $global:DGVbackgroundColor = [System.Drawing.Color]::DarkGreen $global:DGVforegroundColor = [System.Drawing.Color]::White $globa...
- Tue Mar 19, 2024 6:32 am
- Forum: PowerShell Studio
- Topic: Error: Writing scripts to bin\x64\my.exe failed, error code 87, data size
- Replies: 2
- Views: 547
Re: Error: Writing scripts to bin\x64\my.exe failed, error code 87, data size
Restart fixed it.
Weird it was still stuck on the size of my old file
Luckily with our AV we tell people we grabbed the file and then security quickly calls you... ask me how I know
Weird it was still stuck on the size of my old file
Luckily with our AV we tell people we grabbed the file and then security quickly calls you... ask me how I know
- Mon Mar 18, 2024 7:13 pm
- Forum: PowerShell Studio
- Topic: Error: Writing scripts to bin\x64\my.exe failed, error code 87, data size
- Replies: 2
- Views: 547
Error: Writing scripts to bin\x64\my.exe failed, error code 87, data size
To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product: PowerShell Studio 2023 (64 Bit) Build...
- Fri Feb 02, 2024 3:14 am
- Forum: PowerShell GUIs
- Topic: Action the X (Close) Button
- Replies: 2
- Views: 1579
Re: Action the X (Close) Button
In the script pane just do this
$button1.enabled = $false
Also try restarting your computer
That’s an issue I’ve never ran across
$button1.enabled = $false
Also try restarting your computer
That’s an issue I’ve never ran across
- Thu Dec 28, 2023 6:43 am
- Forum: PowerShell Studio
- Topic: v5.8.232 writes exe version as 5.0.36.0
- Replies: 4
- Views: 7172
Re: v5.8.232 writes exe version as 5.0.36.0
Thank you for taking the time to look at this. My builds are passing and will update docs on my side
I think when I originally posted this , I was trying to build all of it first, and not .exe first and then MSI.. not sure
I apologize I didn't respond to this earlier.
I think when I originally posted this , I was trying to build all of it first, and not .exe first and then MSI.. not sure
I apologize I didn't respond to this earlier.
- Wed Dec 27, 2023 6:39 am
- Forum: PowerShell GUIs
- Topic: Unresponsive form while module loads
- Replies: 8
- Views: 18305
Re: Unresponsive form while module loads
PowerShell does not have any multi-threading support that would allow for that (that I am aware of). I have had some ideas on that, which I have never tried. If you are willing, we can do some experiments. Your use case seems to be perfect to try what I had in mind. So if you are up to it… I’ll be ...
- Sat Dec 23, 2023 7:11 am
- Forum: PowerShell GUIs
- Topic: Unresponsive form while module loads
- Replies: 8
- Views: 18305
Re: Unresponsive form while module loads
Thank you.
Welcome to the bonus boss stage of PowerShell
Welcome to the bonus boss stage of PowerShell
- Mon Dec 18, 2023 4:33 pm
- Forum: PowerShell GUIs
- Topic: Unresponsive form while module loads
- Replies: 8
- Views: 18305
Re: Unresponsive form while module loads
runspaces? I use this method over 10 times in my form to ensure the UI stays responsive , which is to wait until the runspace is complete When my form is loading I import the slashscreen, that post is from last week maybe when my splashform is visible via my startup.pss and the runspace(function fro...