Search found 78 matches

by lontru
Fri Mar 12, 2021 1:02 am
Forum: PowerShell GUIs
Topic: Microsoft .Net Framework error on new computer
Replies: 0
Views: 3128

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: 766

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: 766

$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: 801

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: 603

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...
by lontru
Sun Dec 29, 2019 10:50 am
Forum: PowerShell GUIs
Topic: function ConvertTo-DataTable - Please use DBNull instead
Replies: 4
Views: 1844

Re: function ConvertTo-DataTable - Please use DBNull instead

got same error with the posted function.

modified the code a bit to get away with the warnings

Code: Select all

if ($($prop.Value))
{
	$row.Item($prop.Name) = $prop.Value
}
by lontru
Wed Dec 18, 2019 2:14 pm
Forum: PowerShell GUIs
Topic: function ConvertTo-DataTable - Please use DBNull instead
Replies: 4
Views: 1844

Re: function ConvertTo-DataTable - Please use DBNull instead

still get error because it null
ERROR: Exception setting "Item": "Exception calling "set_Item" with "2" argument(s): "Cannot set Column 'LastActiveTime' to be null. Please use DBNull instead.""
by lontru
Tue Dec 17, 2019 1:37 pm
Forum: PowerShell GUIs
Topic: function ConvertTo-DataTable - Please use DBNull instead
Replies: 4
Views: 1844

function ConvertTo-DataTable - Please use DBNull instead

PowerShell Studio 2018 v5.5.154 Getting this error: Exception setting "Item": "Exception calling "set_Item" with "2" argument(s): "Cannot set Column 'LastActiveTime' to be null. Please use DBNull instead."" $Members = Get-CMCollectionMember -CollectionName $TargetCollection | Select-Object -Property...
by lontru
Wed Nov 27, 2019 1:18 am
Forum: PowerShell GUIs
Topic: combobox filtering/autocomplete input
Replies: 5
Views: 1742

Re: combobox filtering/autocomplete input

it works now - but this method req that you know the begining of the word you looking for. $form1_Load={ Update-ComboBox $combobox1 $cars $combobox1.AutoCompleteMode = 'SuggestAppend' $combobox1.AutoCompleteSource = 'ListItems' } if i was looking for these item in the list "Bentley TEST" "Mini TEST"...
by lontru
Wed Nov 27, 2019 12:23 am
Forum: PowerShell GUIs
Topic: combobox filtering/autocomplete input
Replies: 5
Views: 1742

Re: combobox filtering/autocomplete input

doesnt do anything? $form1_Load={ Update-ComboBox $combobox1 $cars $combobox1.AutoCompleteMode = 'SuggestAppend' } should it not suggest when i typing : Fo The function im looking for is something like this When i type "on" in the box it should limited the list to Gordon Murray Honda Aston Martin Pr...