Search found 14441 matches

by jvierra
Fri Jun 12, 2020 1:33 pm
Forum: PowerShell GUIs
Topic: Understanding CheckedListBox controls
Replies: 13
Views: 841

Re: Understanding CheckedListBox controls

Set the property to check on click. "CheckOnClick"

https://docs.microsoft.com/en-us/dotnet ... etcore-3.1
by jvierra
Thu Jun 11, 2020 10:50 pm
Forum: PowerShell
Topic: New-WebServiceProxy Not Responding and hanging my script
Replies: 4
Views: 300

Re: New-WebServiceProxy Not Responding and hanging my script

Test-Connection doesn't time out it tests and returns if there is no response in a few milliseconds. It does not check if the data is available only if the server is alive. "Invoke-WebRequest" is what takes 2 minutes to time out if the server does not respond or does not use "keep-alives". There is ...
by jvierra
Thu Jun 11, 2020 7:54 pm
Forum: PowerShell GUIs
Topic: datagridview - ensure checkbox value is correct
Replies: 15
Views: 316

Re: datagridview - ensure checkbox value is correct

The value always tells you the state of the checkbox even when the row has not been committed. The data row may not be the same until the edit of edit or a commit. A change of focus will sync this. No matter what anyone says that is teh way it works. It is the way it is defined and it is how we have...
by jvierra
Thu Jun 11, 2020 6:52 pm
Forum: PowerShell GUIs
Topic: Understanding CheckedListBox controls
Replies: 13
Views: 841

Re: Understanding CheckedListBox controls

To get a CheckedListBox item when it is checked just put your code into the event for the "ItemCheck" event. It will had you the item being checked. https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.checkedlistbox.itemcheck?WT.mc_id=DT-MVP-5003235&view=netframework-4.8 The item is "$_...
by jvierra
Thu Jun 11, 2020 12:56 pm
Forum: PowerShell GUIs
Topic: Understanding CheckedListBox controls
Replies: 13
Views: 841

Re: Understanding CheckedListBox controls

YOur question is far too vague.
I recomend starting with this as it will help you understand what variables and lists are in programming as your view of this is based on everyday usage.

Windows PowerShell™ 4: TFM
by jvierra
Thu Jun 11, 2020 10:41 am
Forum: PowerShell
Topic: New-WebServiceProxy Not Responding and hanging my script
Replies: 4
Views: 300

Re: New-WebServiceProxy Not Responding and hanging my script

You can use Test-Connection to check the server. The Web link will timeout after about two minutes. If the connection never times out then you will want to contact the webmaster and get the service fixed. With come services asking for a large amount of data can cause the response to take minutes if ...
by jvierra
Wed Jun 10, 2020 10:16 pm
Forum: PowerShell GUIs
Topic: Powershell Studio simple timer assistance
Replies: 3
Views: 122

Re: Powershell Studio simple timer assistance

The Windows Forms Timer control only has 1ms interval resolution. The timer is also unreliable for hi-resolution tasks.

See the following for exact specifications: https://docs.microsoft.com/en-us/dotnet ... l-property
by jvierra
Wed Jun 10, 2020 6:28 pm
Forum: PowerShell GUIs
Topic: display only specific rows in datagridview
Replies: 8
Views: 203

Re: display only specific rows in datagridview

You need to read the training documents and not just the control documents.
https://docs.microsoft.com/en-us/dotnet ... dows-forms

And you have to actually study and understand what teh teaching material is trying to show you.
by jvierra
Wed Jun 10, 2020 5:36 pm
Forum: PowerShell GUIs
Topic: display only specific rows in datagridview
Replies: 8
Views: 203

Re: display only specific rows in datagridview

Again - you are missing the big picture. The RowFilter works on a ListBox too.

If you start with "System.Windows.Forms.Control you will learn how all of these things work. By guessing you will be constantly doing things the hard way.
by jvierra
Wed Jun 10, 2020 5:23 pm
Forum: PowerShell GUIs
Topic: display only specific rows in datagridview
Replies: 8
Views: 203

Re: display only specific rows in datagridview

Lembasts wrote:
Wed Jun 10, 2020 5:18 pm
Might be easier to do :
$datagridview.datasource.defaultview.rowfilter = "<valuename> -notlike 'KB$($textboxFilterUpdate.text)*'"
...assuming the datasource is a datatable.
That is what I tried to tell you above.