Search found 103 matches

by lontru
Sun Dec 26, 2021 12:49 pm
Forum: PowerShell GUIs
Topic: $checkedlistbox1.CheckedItems - How do i get the checked index number
Replies: 4
Views: 2315

Re: $checkedlistbox1.CheckedItems - How do i get the checked index number

CheckedIndices was the thing i was looking for thanks.

is there a way to print out all the option in the checkbox
Option 1
Option 2
and so on
by lontru
Thu Dec 23, 2021 11:59 am
Forum: PowerShell GUIs
Topic: $checkedlistbox1.CheckedItems - How do i get the checked index number
Replies: 4
Views: 2315

$checkedlistbox1.CheckedItems - How do i get the checked index number

Image

How do i get the selected index - so instead of getting the "title" getting the number in the list checked.

So above should print out 2 and 4. or 1 and 3 if the index started from 0
by lontru
Sun Nov 28, 2021 11:57 pm
Forum: PowerShell GUIs
Topic: Get value of cell based on another cell from datagridview
Replies: 2
Views: 1233

Re: Get value of cell based on another cell from datagridview

$SelectedCell = $datagridviewResultsLogs.SelectedCells['Device'].Value $SelectedLogfilename = $datagridviewResultsLogs.Rows[$($datagridviewResultsLogs.CurrentCell.RowIndex)].Cells[1].Value $SelectedDevice = $datagridviewResultsLogs.Rows[$($datagridviewResultsLogs.CurrentCell.RowIndex)].Cells[0].Val...
by lontru
Fri Nov 26, 2021 3:41 am
Forum: PowerShell GUIs
Topic: Get value of cell based on another cell from datagridview
Replies: 2
Views: 1233

Get value of cell based on another cell from datagridview

Image

I know how to get selectedvalue from area 1 with : $datagridviewResultsLogs.SelectedCells[0].Value
but how do i get the value in area 2 when selecting cell from area 1 - the same row.
by lontru
Fri Mar 12, 2021 1:02 am
Forum: PowerShell GUIs
Topic: Microsoft .Net Framework error on new computer
Replies: 0
Views: 12019

Microsoft .Net Framework error on new computer

I have installed a new mashine and installed powershell studio on it copied my project to this mashine but when i want to compile the project i get a Microsoft .Net Framework error Both mashine running windows 10 and have same powershell version PS C:\Windows\system32> $PSVersionTable Name Value ---...
by lontru
Thu Feb 18, 2021 1:01 pm
Forum: PowerShell GUIs
Topic: $datagridview1.AutoSizeColumnsMode = 'Fill' - howto size after cell content?
Replies: 3
Views: 1519

Re: $datagridview1.AutoSizeColumnsMode = 'Fill' - howto size after cell content?

is there a way so it dynamic cause the name lenght can changes`?
by lontru
Tue Feb 16, 2021 2:43 pm
Forum: PowerShell GUIs
Topic: $datagridview1.AutoSizeColumnsMode = 'Fill' - howto size after cell content?
Replies: 3
Views: 1519

$datagridview1.AutoSizeColumnsMode = 'Fill' - howto size after cell content?

$form1_Load={ #TODO: Initialize Form Controls here $VMs = Get-VM | Select-Object Name, CPUUsage, UpTime $DataTable = ConvertTo-DataTable -InputObject $VMs $datagridview1.RowHeadersVisible = $false $datagridview1.AutoSizeColumnsMode = 'Fill' Update-DataGridView -DataGridView $datagridview1 -Item $Da...
by lontru
Tue Oct 06, 2020 12:39 pm
Forum: PowerShell GUIs
Topic: childform icon
Replies: 1
Views: 1195

childform icon

Is it possible to give the childform and icon so you can see it in taskbar
by lontru
Thu Sep 17, 2020 12:58 am
Forum: PowerShell GUIs
Topic: Microsoft .net Framework error
Replies: 1
Views: 1323

Microsoft .net Framework error

Have reinstalled my computer and now my application doesnt start? runnning https://i.imgur.com/B7aJaRL.png https://i.imgur.com/pJAgLy4.png how do i fix this error? See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Te...