Search found 100 matches

by miketartaglia
Sun Aug 02, 2020 7:45 am
Forum: PowerShell GUIs
Topic: Different text colors for each item in a listbox
Replies: 1
Views: 71

Different text colors for each item in a listbox

Is it possible to have different text colors for each item depending on an expression in a listbox? If so, please point me in the right direction .

Thank you,
Mike
by miketartaglia
Sat Aug 01, 2020 7:22 am
Forum: PowerShell
Topic: Problem with invoke-command and forms
Replies: 3
Views: 227

Re: Problem with invoke-command and forms

thank you so much! I was able to use example 9 to help me. I just can't believe I have never ran into this before. LOL
by miketartaglia
Fri Jul 31, 2020 1:15 pm
Forum: PowerShell
Topic: Problem with invoke-command and forms
Replies: 3
Views: 227

Problem with invoke-command and forms

Could use some help as to why I am getting the following errors. SEE CODE at the bottom of this post ---------------------- Product, version and build:Powershell Studio 5.7.1.179 32 or 64 bit version of product: Operating system: windows 10 32 or 64 bit OS: 64 ERROR: Cannot bind argument to paramete...
by miketartaglia
Wed Sep 18, 2019 4:59 pm
Forum: PowerShell GUIs
Topic: Sorting by column in a datagridview
Replies: 12
Views: 1357

Re: Sorting by column in a datagridview

$currentsort ended up being null in the debugger. I set it when someone sorts a column.

Obviously I am missing something. Sorry to ask this, but I am hoping you can be a little more specific as to where your two suggestions should be put.
by miketartaglia
Wed Sep 18, 2019 10:58 am
Forum: PowerShell GUIs
Topic: Sorting by column in a datagridview
Replies: 12
Views: 1357

Re: Sorting by column in a datagridview

Sorry, I am not being clear enough... If I click on the 'Name' column to sort after the form loads the first time, then the form reloads (because the timer ran out), how can I keep the sort by 'Name' without doing it in SQL. The reason why I say that is I could have another column sorted, not necess...
by miketartaglia
Wed Sep 18, 2019 10:51 am
Forum: PowerShell GUIs
Topic: Sorting by column in a datagridview
Replies: 12
Views: 1357

Re: Sorting by column in a datagridview

Awesome. I will try that. On another note, is there a way for the form to "reload" and keep the existing sort? That's ultimately what should be done in this instance.

Another words, if I click one of the columns and the form reloads, can the existing sort stay some how?
by miketartaglia
Wed Sep 18, 2019 10:38 am
Forum: PowerShell GUIs
Topic: Sorting by column in a datagridview
Replies: 12
Views: 1357

Re: Sorting by column in a datagridview

I put it in at the bottom of the previously posted code, but since it's not working, I assume that is not the correct place.
by miketartaglia
Wed Sep 18, 2019 10:22 am
Forum: PowerShell GUIs
Topic: Sorting by column in a datagridview
Replies: 12
Views: 1357

Re: Sorting by column in a datagridview

Yes I know how to do that, that was way too obvious. But what I am trying to do is have the form reload using a timer (say 1 minute). But when it does reload, the sort reverts back to the data in order of when the data was entered not by the sort how you mentioned.
by miketartaglia
Wed Sep 18, 2019 8:09 am
Forum: PowerShell GUIs
Topic: Sorting by column in a datagridview
Replies: 12
Views: 1357

Sorting by column in a datagridview

I have a datagridview from a MS-SQL database that gets displayed in a form. I used the code that the database connection object created automatically. I want to sort by one of the columns as soon as the form opens. I assume it's done in the last list in the code below. Just not sure what to change. ...
by miketartaglia
Wed May 15, 2019 12:20 pm
Forum: PowerShell Studio
Topic: Powershell Service information
Replies: 1
Views: 1333

Powershell Service information

My question here is more of a general question. I have been using powershell studio for some time now. I am just starting learning how to create a powershell service and would like to know where i can find indepth information on this with PSS.