Search found 15332 matches

by jvierra
Fri Nov 25, 2022 7:06 pm
Forum: PowerShell GUIs
Topic: Using Duo to your powershell project
Replies: 1
Views: 297

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: 1631

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: 1631

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: 198

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: 1116

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: 1116

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: 1116

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: 2546

Re: Alle Active Directory Gruppen in einem Listview ausgeben

Here is a working demo showing how to populate and use a ListView.
by jvierra
Sun Nov 13, 2022 3:20 pm
Forum: PowerShell
Topic: Alle Active Directory Gruppen in einem Listview ausgeben
Replies: 5
Views: 2546

Re: Alle Active Directory Gruppen in einem Listview ausgeben

Here is another demo that shows other methods of working with the Net Framework ADSI classes.