Search found 104 matches

by Domtar
Mon Oct 03, 2022 10:45 am
Forum: PowerShell GUIs
Topic: open explorer with path
Replies: 3
Views: 192

Re: open explorer with path

I need the credential object because my GUI is used by the Service Desk to browse files on a targeted computer, to see installation log files and such... if I use &explorer <path> as suggested by owinsloe, the credential window pops up. since a resource from the service desk can access tens of c...
by Domtar
Fri Sep 16, 2022 6:04 am
Forum: PowerShell GUIs
Topic: open explorer with path
Replies: 3
Views: 192

open explorer with path

hi all, here's the situation: I'm writing a GUI to help the service desk in their daily tasks. For that purpose, I need to open an explorer window on a given path on a target computer. If I use invoke-item on the path, the user needs to enter his/her credentials each time they access a new computer,...
by Domtar
Wed Sep 07, 2022 6:53 am
Forum: PowerShell GUIs
Topic: get list of a specific control in my GUI
Replies: 1
Views: 156

get list of a specific control in my GUI

hi all, I have multiple groupBoxes that are visible or not depending on some selection done in the GUI. Instead of coding each groupBox and set them as visible or not, i was wondering if there was a way to get all those groupBoxes, like in (pseudo-code to illustrate) foreach ($group in $form.groupBo...
by Domtar
Tue Jun 28, 2022 6:49 am
Forum: PowerShell GUIs
Topic: load table to datagrid column size
Replies: 1
Views: 1125

load table to datagrid column size

Good morning, I'm building a table with 3 columns, add stuff into it, all good. Later, I created a datagridview, bound the table to it with $datagrid.datasource = $table Looking at the datagridview, I see all the correct data. But the columns are not wide enough to display all the text, only partial...
by Domtar
Tue Feb 22, 2022 8:17 am
Forum: PowerShell
Topic: datagridview & table
Replies: 2
Views: 1504

datagridview & table

hi all, I've created a GUI where I display a DataGridView bound to a table. I load all the desired values into the Table and successfully display it in my DGV. The data is the computers from AD with their location. Now, I'm trying to display some values depending on a criteria. For example, I'd like...
by Domtar
Tue Jan 11, 2022 4:52 am
Forum: PowerShell GUIs
Topic: datagrid checkbox column
Replies: 1
Views: 2166

datagrid checkbox column

hi all,

I've created a GUI with a Datagridview that has 2 columns: 1 checkbox & 1 text

When I check if the checkbox is checked, it always returns false. I have no idea what I'm doing wrong.

I'm using this: $datagridUsers.Rows[$i].Cells[0].Value

please help. thanks!
by Domtar
Thu Nov 04, 2021 11:06 am
Forum: PowerShell Studio
Topic: #TODO
Replies: 2
Views: 3503

Re: #TODO

yes, that's exactly what I need.

i remember now.

thanks :-)
by Domtar
Thu Nov 04, 2021 10:21 am
Forum: PowerShell Studio
Topic: #TODO
Replies: 2
Views: 3503

#TODO

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: PowerShell Studio 2021 (64 Bit) Build...
by Domtar
Tue Jul 06, 2021 4:41 am
Forum: PowerShell GUIs
Topic: show jobs have completed
Replies: 2
Views: 4170

Re: show jobs have completed

There are stuff in my GUI that take time to process and the GUI goes "not responding". To avoid that, I'd like to trigger these actions with a job instead.

so you say that i should add a timer to my GUI? I'll give that a try.

thanks!
by Domtar
Mon Jul 05, 2021 11:33 am
Forum: PowerShell GUIs
Topic: DataGridView Question
Replies: 1
Views: 3351

Re: DataGridView Question

hi, I was able to make this by using a Textbox control and the following code; $textboxFilter_TextChanged={ for ($i = 0; $i -lt $datagrid.RowCount; $i++) { if ($datagrid.Rows[$i].Cells[0].value -notlike "*$($textboxFilter.text)*") { $datagrid.Rows[$i].Visible = $false } else { $datagrid.Ro...