Search found 299 matches

by Lembasts
Thu Jun 11, 2020 6:22 pm
Forum: PowerShell GUIs
Topic: Understanding CheckedListBox controls
Replies: 13
Views: 1193

Re: Understanding CheckedListBox controls

an example would be loading the checkedlistbox like so: $checkedlistboxfiles.DisplayMember = "filename" $checkedlistboxfiles.items.addrange(@($fileobject)) This assumes you have a $fileobject with a property called filename. You might then have a button that wants to do something to all the files th...
by Lembasts
Thu Jun 11, 2020 6:06 pm
Forum: PowerShell Studio
Topic: Random runtime error
Replies: 2
Views: 227

Re: Random runtime error

Weird requires weird fixes.
I opened every file in my project, deleted a blank line from each and saved them all.
Half of them had messages about converting to new version.
Problem has gone.
by Lembasts
Thu Jun 11, 2020 2:44 pm
Forum: PowerShell Studio
Topic: Random runtime error
Replies: 2
Views: 227

Random runtime error

To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product, version and build: 178 32 or 64 bit v...
by Lembasts
Thu Jun 11, 2020 2:26 pm
Forum: PowerShell Studio
Topic: Constant flickering of wait cursor - its back
Replies: 4
Views: 320

Re: Constant flickering of wait cursor - its back

Yes - its just moving the cursor to areas outside of the script and output windows. i.e. the ribbon, project, object browser, functions etc.
by Lembasts
Wed Jun 10, 2020 6:22 pm
Forum: PowerShell GUIs
Topic: display only specific rows in datagridview
Replies: 8
Views: 409

Re: display only specific rows in datagridview

Whilst the Microsoft Docs are a great resource they are lousy at teaching stuff for beginners.
If one could learn everything from the MS docs then one wouldnt need forums like this or stackoverflow etc...
And Sapien shouldnt have to offer classroom training...
by Lembasts
Wed Jun 10, 2020 5:26 pm
Forum: PowerShell GUIs
Topic: display only specific rows in datagridview
Replies: 8
Views: 409

Re: display only specific rows in datagridview

You've already told me :-)
Im telling them.
That's another reason I use dgvs over checkedlistboxes - the rowfilter is awesome!
by Lembasts
Wed Jun 10, 2020 5:18 pm
Forum: PowerShell GUIs
Topic: display only specific rows in datagridview
Replies: 8
Views: 409

Re: display only specific rows in datagridview

Might be easier to do :
$datagridview.datasource.defaultview.rowfilter = "<valuename> -notlike 'KB$($textboxFilterUpdate.text)*'"
...assuming the datasource is a datatable.
by Lembasts
Wed Jun 10, 2020 3:27 pm
Forum: PowerShell Studio
Topic: Constant flickering of wait cursor - its back
Replies: 4
Views: 320

Constant flickering of wait cursor - its back

TProduct, version and build: 178 32 or 64 bit version of product: 64 Operating system: 10 1909 32 or 64 bit OS: 64 The constant flickering of the wait cursor (intellisense issue?) disappeared for a while after I installed 178. Sad to say that it returned at the beginning of this week. It happens eve...
by Lembasts
Mon Jun 08, 2020 9:58 pm
Forum: PowerShell GUIs
Topic: datagridview - ensure checkbox value is correct
Replies: 15
Views: 657

Re: datagridview - ensure checkbox value is correct

I started with a checkedlistbox but I need to make the values different colours.
I also wanted to use the opportunity to learn about DGVs.
by Lembasts
Mon Jun 08, 2020 9:29 pm
Forum: PowerShell GUIs
Topic: datagridview - ensure checkbox value is correct
Replies: 15
Views: 657

Re: datagridview - ensure checkbox value is correct

What the button does is to actually remove the selected rows from the dgv.
Thats also fun as one cannot loop through a datatable collection to remove them.