Search found 293 matches

by Lembasts
Thu Jul 02, 2020 5:54 pm
Forum: PowerShell GUIs
Topic: Control class object for the form itself
Replies: 7
Views: 474

Re: Control class object for the form itself

I know what objects and object programming is. Probably best not to complicate the answer to questions.
by Lembasts
Thu Jul 02, 2020 5:09 pm
Forum: PowerShell GUIs
Topic: Control class object for the form itself
Replies: 7
Views: 474

Re: Control class object for the form itself

I was after the control object for the form.
The object that has the properties etc for the control class:
https://docs.microsoft.com/en-us/dotnet ... etcore-3.1
I can get the control objects for every other control on the form but not the form itself.
by Lembasts
Thu Jul 02, 2020 4:50 pm
Forum: PowerShell GUIs
Topic: Control class object for the form itself
Replies: 7
Views: 474

Re: Control class object for the form itself

I take it the answer is no then.
That's sorta what I thought.
by Lembasts
Thu Jul 02, 2020 3:37 pm
Forum: PowerShell GUIs
Topic: Control class object for the form itself
Replies: 7
Views: 474

Control class object for the form itself

Greetings,
I can get a collection of Control class objects for the form's immediate children by accessing the controls property e.g. $formMyform.controls
How do I get the Control class object for the form itself?
Thanks
David
by Lembasts
Thu Jul 02, 2020 3:07 pm
Forum: PowerShell GUIs
Topic: Unable To Use DataGridView
Replies: 2
Views: 249

Re: Unable To Use DataGridView

Make sure you are running the latest version of PS Studio (179).
by Lembasts
Wed Jun 24, 2020 9:31 pm
Forum: PowerShell GUIs
Topic: Datagridview multiselect and shift click
Replies: 7
Views: 208

Re: Datagridview multiselect and shift click

Thanks - I thought that might be it but knowing its triggered for each row in a multi selection will do the trick.
by Lembasts
Wed Jun 24, 2020 6:38 pm
Forum: PowerShell GUIs
Topic: Datagridview multiselect and shift click
Replies: 7
Views: 208

Re: Datagridview multiselect and shift click

I have - I cannot find an event that has similar words to 'select' and 'complete'
by Lembasts
Wed Jun 24, 2020 3:00 pm
Forum: PowerShell GUIs
Topic: Datagridview multiselect and shift click
Replies: 7
Views: 208

Re: Datagridview multiselect and shift click

Thanks. To be a huge help can you list the exact name of the event as there are alot of them!
by Lembasts
Wed Jun 24, 2020 2:51 pm
Forum: PowerShell GUIs
Topic: Datagridview multiselect and shift click
Replies: 7
Views: 208

Datagridview multiselect and shift click

Greetings, I have datagridview multiselect = true and I can check multiple checkbox cells individually however doing a click then shift-click to select multiple rows does not toggle all the check boxes, it just checks the first and last boxes. What is the best way to programatically implement shift-...
by Lembasts
Thu Jun 11, 2020 8:48 pm
Forum: PowerShell GUIs
Topic: datagridview - ensure checkbox value is correct
Replies: 15
Views: 503

Re: datagridview - ensure checkbox value is correct

I found better way that doesnt require the event:
$checkedrows = $dgv.rows | where {$_.cells[0].editingcellformattedvalue}
...as editingcellformattedvalue property is wysiwyg.
None of this edit mode rubbish :-)