Search found 15334 matches

by jvierra
Wed Nov 30, 2022 12:48 am
Forum: PowerShell GUIs
Topic: Add-JobTracker - how to measure time
Replies: 3
Views: 553

Re: Add-JobTracker - how to measure time

I recommend starting with the free book I linked. It will teach you the basics of how to test various conditions in a script. You will need to check the jobs array. When it is empty then all jobs are done. Note that each job object also has the runtime and job status included in the job object. http...
by jvierra
Tue Nov 29, 2022 1:22 pm
Forum: PowerShell GUIs
Topic: Add-JobTracker - how to measure time
Replies: 3
Views: 553

Re: Add-JobTracker - how to measure time

Get the time before you start the job: $starttime = [datetime]::Now Get the time when job ends: $endtime =[datetime]::Now Now the elapsed time: $elapsedtime = $endtime - $starttime This will help you get started with PowerShell and using math with objects. https://www.sapien.com/books_training/Windo...
by jvierra
Fri Nov 25, 2022 7:06 pm
Forum: PowerShell GUIs
Topic: Using Duo to your powershell project
Replies: 1
Views: 452

Re: Using Duo to your powershell project

You cannot build web applications with PowerShell. PowerShell is not an applications language, and it is not designed to build web sites.

I recommend that you post questions about web applications in a web forum or in the Duo forum.
by jvierra
Thu Nov 17, 2022 2:24 pm
Forum: PowerShell GUIs
Topic: The NotifyIcon Control - how do i apply the icon?
Replies: 3
Views: 1666

Re: The NotifyIcon Control - how do i apply the icon?

I thought that was what you were doing. That is the code you posted. How else would you be using a tooltip?
by jvierra
Thu Nov 17, 2022 12:22 am
Forum: PowerShell GUIs
Topic: The NotifyIcon Control - how do i apply the icon?
Replies: 3
Views: 1666

Re: The NotifyIcon Control - how do i apply the icon?

Just follow the instructions. The name of the icon is all that is needed.

$tooltip1.ToolTipIcon = 'Error'
by jvierra
Wed Nov 16, 2022 1:50 pm
Forum: PowerShell GUIs
Topic: Taskbar icon different than Form Icon
Replies: 1
Views: 224

Re: Taskbar icon different than Form Icon

You would use a notification icon or programmatically change the icon which is not easy to do with PowerShell.

See: https://stackoverflow.com/questions/220 ... pplication
by jvierra
Tue Nov 15, 2022 5:31 pm
Forum: PowerShell GUIs
Topic: Gridview with textbox filter - slow...
Replies: 7
Views: 1381

Re: Gridview with textbox filter - slow...

You ignored the most basic issue. Use a DataTable and filter that. Your code is not very good, and I do not know of any programmer that would try to code a filter like that. A Listbox can be data bound to a DataTable object and the table object can be directly filters. I recommend learning a bit abo...
by jvierra
Tue Nov 15, 2022 2:48 pm
Forum: PowerShell GUIs
Topic: Gridview with textbox filter - slow...
Replies: 7
Views: 1381

Re: Gridview with textbox filter - slow...

Another simple method if you have a small number of rows is disable updates before the loop and re-enable them after the loop. In a loop each time you make a row hidden the whole DGV will be redrawn. That may be the most time consuming issue. To disable layout updates: $form1.SuspendLayout() To re-e...
by jvierra
Tue Nov 15, 2022 2:08 pm
Forum: PowerShell GUIs
Topic: Gridview with textbox filter - slow...
Replies: 7
Views: 1381

Re: Gridview with textbox filter - slow...

Yes. Use a DataBound Listbox and filter the underlying DataTable. It takes only one line of code to do that, and it is almost instantaneous for less than a thousand strings.
by jvierra
Sun Nov 13, 2022 10:33 pm
Forum: PowerShell
Topic: Alle Active Directory Gruppen in einem Listview ausgeben
Replies: 5
Views: 3397

Re: Alle Active Directory Gruppen in einem Listview ausgeben

Here is a working demo showing how to populate and use a ListView.