Search found 14071 matches

by jvierra
Thu Jan 02, 2020 4:26 pm
Forum: PowerShell GUIs
Topic: Vscrollbar in Treeview
Replies: 11
Views: 578

Re: Vscrollbar in Treeview

Sorry - I don't have any samples.
by jvierra
Thu Jan 02, 2020 4:04 pm
Forum: PowerShell GUIs
Topic: Vscrollbar in Treeview
Replies: 11
Views: 578

Re: Vscrollbar in Treeview

Ok. Just send scroll commands to both TreeView controls. You can send scroll commands by scroll position and the two will track with the control.
by jvierra
Thu Jan 02, 2020 10:07 am
Forum: PowerShell GUIs
Topic: Vscrollbar in Treeview
Replies: 11
Views: 578

Re: Vscrollbar in Treeview

Why? The TreeView has its own scrollbars. They will turn on when needed. To be sure the children are expanded use the "ExpandAll" method of the tree control.

$treeview1.ExpandAll()
by jvierra
Fri Dec 20, 2019 10:21 am
Forum: PowerShell GUIs
Topic: Variable Within Job
Replies: 2
Views: 401

Re: Variable Within Job

Hi DFIR-CLE, It sounds like a scope issue. When calling the job you should just use the textbox as a source for thepath as the textbox is always the current value aas selected. In programming we try to not use interim variables as they are seldom needed and lead to errors like you are seeing. Since ...
by jvierra
Fri Dec 20, 2019 8:37 am
Forum: PowerShell GUIs
Topic: Multi Display - Powershell forms opening on the focus display screen
Replies: 4
Views: 334

Re: Multi Display - Powershell forms opening on the focus display screen

That is because the PowerShell engine and the Sapien host are not designed to support multiple screens. You should ask in the Sapien product support forum to validate this as I have all my monitors in use and cannot set up a test without a lot of pain right now. Also here is a discussion that refere...
by jvierra
Fri Dec 20, 2019 4:16 am
Forum: PowerShell GUIs
Topic: Multi Display - Powershell forms opening on the focus display screen
Replies: 4
Views: 334

Re: Multi Display - Powershell forms opening on the focus display screen

To do this you will have to leverage the desktop API which is not available in the Net Framework. You should also be able to package this as an EXE and it should display in the active session.
by jvierra
Thu Dec 19, 2019 4:44 am
Forum: PowerShell GUIs
Topic: Top 5 Processes Chart and Axis Label / Values Font Color Dark Theme
Replies: 4
Views: 285

Re: Top 5 Processes Chart and Axis Label / Values Font Color Dark Theme

You also have to set the labels settings for each element in the chart. The properties are listed on the same page to the left.
by jvierra
Thu Dec 19, 2019 1:32 am
Forum: PowerShell GUIs
Topic: Top 5 Processes Chart and Axis Label / Values Font Color Dark Theme
Replies: 4
Views: 285

Re: Top 5 Processes Chart and Axis Label / Values Font Color Dark Theme

You have to set the "legend" fonts and style settings. I am not sure that the graph control supports themes.

https://docs.microsoft.com/en-us/dotnet ... mework-4.8
by jvierra
Wed Dec 18, 2019 3:27 pm
Forum: PowerShell GUIs
Topic: function ConvertTo-DataTable - Please use DBNull instead
Replies: 4
Views: 425

Re: function ConvertTo-DataTable - Please use DBNull instead

You are likely using an old copy of the function. Her eis the newest version that has adjusted some things. function ConvertTo-DataTable{ <# .SYNOPSIS Converts objects into a DataTable. .DESCRIPTION Converts objects into a DataTable, which are used for DataBinding. .PARAMETER InputObject The input t...
by jvierra
Wed Dec 18, 2019 11:07 am
Forum: PowerShell GUIs
Topic: Trying to write a utility to copy from Server Share to mapped drive
Replies: 5
Views: 297

Re: Trying to write a utility to copy from Server Share to mapped drive

The following would be an easier way to manage the code and it would be easier to under5stand: $buttonRunProcess_Click= { $buttonRunProcess.Enabled = $false $richtextboxOutput.Clear() $arguments = @( "\\Domain\Server\Share\Subfolder\$($env:USERNAME)", 'H:\Backup', '/E', '/Log+:C:\Temp\Robo.log', '/T...