Search found 372 matches

by stevens
Wed Jan 29, 2020 8:08 am
Forum: PowerShell GUIs
Topic: GUI doesn't start, please help!
Replies: 2
Views: 12

Re: GUI doesn't start, please help!

Thanks a lot for your quick reply. It appeared the GUI was executing a script myscript.ps1, but I did not had any reference to it @start.
Removed the script and everything fine again. Not sure what was going on, but solved :-)
by stevens
Wed Jan 29, 2020 7:01 am
Forum: PowerShell GUIs
Topic: GUI doesn't start, please help!
Replies: 2
Views: 12

GUI doesn't start, please help!

Hi, I was working in a production GUI, made some modifications, then tried to start the project (as I did many times) but suddenly the project just don't start(!) No warning, erros or whatsoever. Reverted the changes I did, rebooted the computer, but nothing happens. The forms in my project do start...
by stevens
Tue Jan 28, 2020 8:41 am
Forum: PowerShell GUIs
Topic: Color coding cells in datagridview
Replies: 5
Views: 66

Re: Color coding cells in datagridview

Thanks but don't understand it.
Can you give an example?
The example of the link I provided has only Columns
if ($tableCertificates .Columns[$_.ColumnIndex].Name -eq 'notafter' -and $_.Value -gt [datetime]::Today)
by stevens
Mon Jan 27, 2020 6:10 am
Forum: PowerShell GUIs
Topic: ContextMenu: lock to one gridview (on tabcontrol page) + hide items
Replies: 4
Views: 85

Re: ContextMenu: lock to one gridview (on tabcontrol page) + hide items

Thanks, didn't know there was a property contexmenustrip :-)
by stevens
Mon Jan 27, 2020 6:09 am
Forum: PowerShell GUIs
Topic: Color coding cells in datagridview
Replies: 5
Views: 66

Color coding cells in datagridview

Hi, Please see https://www.sapien.com/forums/viewtopic.php?t=11255 I have a similar question: I' d like to make a row lightgreen (or only the cell) in the column StatusName, but only when that status is '*New'. Datagridview is $Datagridview1. Coloring works (if I add like *, everything is lightgreen...
by stevens
Thu Jan 23, 2020 1:22 pm
Forum: PowerShell GUIs
Topic: ContextMenu: lock to one gridview (on tabcontrol page) + hide items
Replies: 4
Views: 85

Re: ContextMenu: lock to one gridview (on tabcontrol page) + hide items

Thanks for your quick reply!
Yes, exactly, but I can't find a way to change the way it is attached now to the gridview.
Also, any idea to hide a control in the context menu strip?
by stevens
Thu Jan 23, 2020 12:57 pm
Forum: PowerShell GUIs
Topic: ContextMenu: lock to one gridview (on tabcontrol page) + hide items
Replies: 4
Views: 85

ContextMenu: lock to one gridview (on tabcontrol page) + hide items

Hi, I have a Powershell Studio Form with tabcontrol in the main form. In the tabcontrol there are several different gridviews (every tab -3 tabs- has one). On one of these gridviews there is a contextmenustrip active, which works fine. No I needed another contextmenustrip for another gridview in ano...
by stevens
Mon Dec 16, 2019 7:23 am
Forum: PowerShell GUIs
Topic: ConvertToDatable makes output gridview empty
Replies: 3
Views: 257

Re: ConvertToDatable makes output gridview empty

Thanks! I'll check asap.
by stevens
Mon Dec 16, 2019 6:05 am
Forum: PowerShell GUIs
Topic: Powershell GUI, MSI - uninstall all previous versions?
Replies: 5
Views: 384

Re: Powershell GUI, MSI - uninstall all previous versions?

Thanks a lot for your input.
However, I add ps1 files to the MSI, they ARE executed (I see the blue popups during install), but the code is not executed. When I executed it manually in Powershell (the ps1 files) they work fine.
Custom actions msi should be 'when the system is modified', right?
by stevens
Sat Dec 14, 2019 2:54 pm
Forum: PowerShell GUIs
Topic: ConvertToDatable makes output gridview empty
Replies: 3
Views: 257

ConvertToDatable makes output gridview empty

Hi, I have a datagridview which I'd like to make sortable Therefore I need the convert to datatable function: https://lazywinadmin.com/2015/01/powershell-studio-2014-datagridview.html However, when I do that, the columns are there, but there is no data in the gridview (there IS when not using the co...