Search found 14783 matches

by jvierra
Thu Apr 08, 2021 11:13 am
Forum: PowerShell
Topic: Force PStudio EXE to run from specified location only
Replies: 11
Views: 1916

Re: Force PStudio EXE to run from specified location only

Actually your question is a bit ambiguous. Are you asking about the PowerShell Studio application or any application?

To easily find the executable of any application use the following.

[System.Windows.Forms.Application]::ExecutablePath
by jvierra
Thu Apr 08, 2021 11:00 am
Forum: PowerShell
Topic: Force PStudio EXE to run from specified location only
Replies: 11
Views: 1916

Re: Force PStudio EXE to run from specified location only

You have the PWD so just use that to get the drive.
by jvierra
Wed Apr 07, 2021 3:53 am
Forum: PowerShell GUIs
Topic: Apply filter to all columns on a Data Table?
Replies: 4
Views: 725

Re: Apply filter to all columns on a Data Table?

It's possible. Just write the filter code.
by jvierra
Wed Apr 07, 2021 2:00 am
Forum: PowerShell GUIs
Topic: Print results into a textbox in reverse order
Replies: 3
Views: 775

Re: Print results into a textbox in reverse order

Sorry - typo. SHould be

$textbox.Text = $newline + $textbox.Text

For ListBox just insert the line at index 0.

$listbox.Items.Insert(0,$line)
by jvierra
Tue Apr 06, 2021 6:23 pm
Forum: PowerShell GUIs
Topic: Cannot close form with $FormName.Close()
Replies: 9
Views: 1097

Re: Cannot close form with $FormName.Close()

No. It reminded me to look before I leap. Luckily my machine recovers to exactly the point of the crash and all apps come open and back where they were although the restart is very slow. It is a good way to have a development machine behave since crashes can be quite normal although a VM is a better...
by jvierra
Tue Apr 06, 2021 3:40 pm
Forum: PowerShell GUIs
Topic: Print results into a textbox in reverse order
Replies: 3
Views: 775

Re: Print results into a textbox in reverse order

There is no reverse order for an array. You can create a new array in reverse then assign it to the "Lines" property.

To insert lines in a list use a ListBox as inserts can be done at the top.

You can also do this.

$listbox.Text = $newline + $listbox.Text
by jvierra
Tue Apr 06, 2021 3:37 pm
Forum: PowerShell GUIs
Topic: Cannot close form with $FormName.Close()
Replies: 9
Views: 1097

Re: Cannot close form with $FormName.Close()

Place a return statement at the beginning of the load event then comment out all message boxes in the Close button event. The close will happen. Same for the other event. It is also a bad idea to restart the local system from a form. It can be done but it can also cause a system exception. I ran you...
by jvierra
Mon Apr 05, 2021 6:48 pm
Forum: PowerShell GUIs
Topic: PowerShell GUI - Hide actual URLs in RichTextBox
Replies: 2
Views: 517

Re: PowerShell GUI - Hide actual URLs in RichTextBox

A little investigation shows that you cannot create hidden text in the RichTextControl. This may be for security reasons.