Search found 14756 matches

by jvierra
Thu Apr 15, 2021 5:14 pm
Forum: PowerShell GUIs
Topic: Datagridview Filtering and operators in column name
Replies: 9
Views: 594

Re: Datagridview Filtering and operators in column name

Here is how to search for a value in a column:
  1. $btnSearch_Click = {
  2.     $rows = $dgvProjects.Rows |
  3.         Where-Object{$_.Cells['OU'].Value = $textBox1.Text}
  4.     $rows | Write-Host
  5. }
by jvierra
Thu Apr 15, 2021 5:02 pm
Forum: PowerShell GUIs
Topic: Datagridview Filtering and operators in column name
Replies: 9
Views: 594

Re: Datagridview Filtering and operators in column name

Unfortunately that is not what your code says. It says the column name comes from the search box. The column rows are filled with "Not Member".
by jvierra
Thu Apr 15, 2021 3:08 pm
Forum: PowerShell GUIs
Topic: Adding child nodes to treeview programmatically
Replies: 2
Views: 223

Re: Adding child nodes to treeview programmatically

The following tutorial will help you to learn how to use the TreeView control which is one of the most complex controls in the toolbox and is always a challenge for anyone who has limited or no experience with WinForms. Take time and try all of the example code until you understand what the control ...
by jvierra
Thu Apr 15, 2021 3:01 pm
Forum: PowerShell GUIs
Topic: Adding child nodes to treeview programmatically
Replies: 2
Views: 223

Re: Adding child nodes to treeview programmatically

Each "node" has a "Nodes" property which is where to place children of a node.

Here is one good example:
by jvierra
Wed Apr 14, 2021 2:24 pm
Forum: PowerShell GUIs
Topic: WebBrowser localstorage has been disable issue.
Replies: 4
Views: 579

Re: WebBrowser localstorage has been disable issue.

One thing to note, when using the WebBrowser control. The control forces the process to run more isolated for security purposes. I suspect it is possibly the AV software or some enforced IE security. You can also easily use Net Ping class. Pinging the target is quite unnecessary because Invoke-Comma...
by jvierra
Wed Apr 14, 2021 9:44 am
Forum: PowerShell GUIs
Topic: Datagridview Filtering and operators in column name
Replies: 9
Views: 594

Re: Datagridview Filtering and operators in column name

I still cannot understand the issue. Why are you creating a column name with the name of an OU? You have to understand that it is hard to impossible to understand something when there is so much vague and disconnected bits of information. Remember that we cannot see what you are doing or know what i...
by jvierra
Wed Apr 14, 2021 3:09 am
Forum: PowerShell GUIs
Topic: Datagridview Filtering and operators in column name
Replies: 9
Views: 594

Re: Datagridview Filtering and operators in column name

it has to be quoted, Still, I have no idea what you are trying to do. When you use a DataTable just use the DataView search methods. There is no filter anywhere and why are you using data for a column name? Also, when you write code then only write what is necessary. You are doing things on supersti...
by jvierra
Tue Apr 13, 2021 10:55 am
Forum: PowerShell GUIs
Topic: Datagridview Filtering and operators in column name
Replies: 9
Views: 594

Re: Datagridview Filtering and operators in column name

Place "{}" around the column names.
by jvierra
Mon Apr 12, 2021 6:13 pm
Forum: PowerShell GUIs
Topic: GUI progress info for running tasks
Replies: 4
Views: 154

Re: GUI progress info for running tasks

To run asynchronous tasks consider the following article:
https://info.sapien.com/index.php/guis/ ... sive-forms
by jvierra
Mon Apr 12, 2021 6:09 pm
Forum: PowerShell GUIs
Topic: GUI progress info for running tasks
Replies: 4
Views: 154

Re: GUI progress info for running tasks

To add in any code in a form you have to place the code in an event like a button click.