Search found 70 matches

by lontru
Wed Nov 27, 2019 2:18 am
Forum: PowerShell GUIs
Topic: combobox filtering/autocomplete input
Replies: 5
Views: 364

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 1:23 am
Forum: PowerShell GUIs
Topic: combobox filtering/autocomplete input
Replies: 5
Views: 364

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...
by lontru
Tue Nov 26, 2019 3:44 pm
Forum: PowerShell GUIs
Topic: combobox filtering/autocomplete input
Replies: 5
Views: 364

combobox filtering/autocomplete input

Hi Is there a way to filter the result in the combobox to match what you type like this tried a textchanged event on the combobox but when you type in it get invertet the input? $TextChanged = $cars | Where-Object { $_.TemplateName -like "*$($combobox1.Text)*" } Update-ComboBox $combobox1 $TextChang...
by lontru
Wed Nov 06, 2019 3:25 am
Forum: PowerShell GUIs
Topic: $datagridviewLogs_CellContentDoubleClick - not header
Replies: 8
Views: 759

Re: $datagridviewLogs_CellContentDoubleClick - not header

this works for now, $datagridviewLogs_CellDoubleClick=[System.Windows.Forms.DataGridViewCellEventHandler]{ if ($($_.RowIndex) -gt -1) { $script:SelectedLogfile = $datagridviewLogs.SelectedRows[0].Cells[0].Value $cmtrace2 = "$env:windir\system32\CMTrace.exe" if (Test-Path $cmtrace2 -PathType Leaf) { ...
by lontru
Wed Nov 06, 2019 12:56 am
Forum: PowerShell GUIs
Topic: $datagridviewLogs_CellContentDoubleClick - not header
Replies: 8
Views: 759

Re: $datagridviewLogs_CellContentDoubleClick - not header

I have inserted your code but the behavior is wierd

the if block should only run if rowindex is greater then -1 but it still run??

I double click on the header - recording show wierd mouse placement.
Image
by lontru
Tue Nov 05, 2019 7:21 am
Forum: PowerShell GUIs
Topic: $datagridviewLogs_CellContentDoubleClick - not header
Replies: 8
Views: 759

Re: $datagridviewLogs_CellContentDoubleClick - not header

I have these line to prevent file form loading as work around. $datagridviewLogs_ColumnHeaderMouseDoubleClick = [System.Windows.Forms.DataGridViewCellMouseEventHandler]{ $datagridviewLogs.CurrentCell = $null } $datagridviewLogs_ColumnHeaderMouseClick = [System.Windows.Forms.DataGridViewCellMouseEven...
by lontru
Tue Nov 05, 2019 5:04 am
Forum: PowerShell GUIs
Topic: $datagridviewLogs_CellContentDoubleClick - not header
Replies: 8
Views: 759

Re: $datagridviewLogs_CellContentDoubleClick - not header

when i double click on the header "lastwritetime" it open the selected row. I dont want that to happen.
the gif is to show how the form behave when i double click the header in the grid "lastwritetime"
by lontru
Tue Nov 05, 2019 2:06 am
Forum: PowerShell GUIs
Topic: $datagridviewLogs_CellContentDoubleClick - not header
Replies: 8
Views: 759

$datagridviewLogs_CellContentDoubleClick - not header

Have build a little tool for viewing logs but have little issue How do i not open the log when I double click the header when i sort by date. Have recordet a gif for showing the issue using datatable for the datagridview Is there a way to presort so lasted LASTWritetime is presorted after date. http...
by lontru
Tue Oct 01, 2019 2:15 am
Forum: PowerShell GUIs
Topic: datagridview - remove empty row to the left or make it smaller?
Replies: 4
Views: 423

Re: datagridview - remove empty row to the left or make it smaller?

my brain is little slow today...did some thinking and came up with this. Would this be the simple and fastest way? $textbox_SearchVendor_TextChanged={ # NOTE: Make sure you ignore the default watermark text when validating if($textboxWatermark.Text -eq $textboxWatermark.Tag) { $vendors = Get-ChildIt...
by lontru
Tue Oct 01, 2019 2:07 am
Forum: PowerShell GUIs
Topic: datagridview - remove empty row to the left or make it smaller?
Replies: 4
Views: 423

Re: datagridview - remove empty row to the left or make it smaller?

my next mission is to search in the grid
I will be using a textbox for the input and the result match showed below as i type in the textbox?

how would you code this?

Image