Search found 12870 matches

by jvierra
Tue Nov 13, 2018 2:26 am
Forum: PowerShell GUIs
Topic: Output being cut in compiled EXE but not is PS Studio
Replies: 8
Views: 118

Re: Output being cut in compiled EXE but not is PS Studio

Nonsense. I just happened to remember the answer from some time ago with output to a file from the console. "Out-File" also has this parameter to avoid console limits.

Your method is likely what the commands are foing under the covers although there may be other ways.
by jvierra
Tue Nov 13, 2018 1:42 am
Forum: PowerShell GUIs
Topic: Output being cut in compiled EXE but not is PS Studio
Replies: 8
Views: 118

Re: Output being cut in compiled EXE but not is PS Studio

There turns out to be an easier way to do this. Just set the width in Out-String. It defaults to current console width which is 80 if it has not been explicitly set to a different value. $textboxContenu.text = Get-ChildItem -Path $($folderbrowsermoderndialog1.SelectedPath) -Recurse | select Name,Dir...
by jvierra
Mon Nov 12, 2018 7:03 pm
Forum: PowerShell GUIs
Topic: Output being cut in compiled EXE but not is PS Studio
Replies: 8
Views: 118

Re: Output being cut in compiled EXE but not is PS Studio

What host are you packaging with?
by jvierra
Mon Nov 12, 2018 1:57 pm
Forum: PowerShell GUIs
Topic: Output being cut in compiled EXE but not is PS Studio
Replies: 8
Views: 118

Re: Output being cut in compiled EXE but not is PS Studio

That is an issue of console width. It can be over come by increasing the console Window size. Be sure you are using the correct host. Using a console host with a Forms script will truncate the output of Format-Table. I recommend not using Format-Table in a form. Use a plain text generator that creat...
by jvierra
Mon Nov 12, 2018 10:20 am
Forum: Windows PowerShell
Topic: General Scripting Help
Replies: 1
Views: 81

Re: General Scripting Help

Hi. I recommend that you start with any tutorial or book. There are dozens of books on Amazon you can find by just searching for PowerShell. Here is a good starter video tutorial. https://mva.microsoft.com/en-us/training-courses/getting-started-with-microsoft-powershell-8276?l=r54IrOWy_2304984382 Af...
by jvierra
Mon Nov 12, 2018 6:43 am
Forum: PowerShell GUIs
Topic: GUI - Display data - table format - color? how?
Replies: 27
Views: 381

Re: GUI - Display data - table format - color? how?

The grouping is explicitly set in the code. You assign each item to a group. If you run the form in the debugger and set breakpoints on each event you will see how it works. If you use items that are all different structures it cannot be exported to a CSV. You need to understand how a ListView is de...
by jvierra
Mon Nov 12, 2018 4:42 am
Forum: PowerShell GUIs
Topic: GUI - Display data - table format - color? how?
Replies: 27
Views: 381

Re: GUI - Display data - table format - color? how?

You have to build the list items correctly . See the attached example.
by jvierra
Mon Nov 12, 2018 4:00 am
Forum: PowerShell GUIs
Topic: GUI - Display data - table format - color? how?
Replies: 27
Views: 381

Re: GUI - Display data - table format - color? how?

Either you have duplicate item names or you have not named the items.
by jvierra
Sun Nov 11, 2018 6:53 pm
Forum: PowerShell GUIs
Topic: Datagridview datasource
Replies: 19
Views: 212

Re: Datagridview datasource

This one adds the "delete" ability using the "Delete" key. It prompts for confirmation.

Note that these changes all take only a few lines of code. Deleting is three lines.

Point is that once you understand how forms are intended to work and are programmed nothing should take more than a few lines.
by jvierra
Sun Nov 11, 2018 6:33 pm
Forum: PowerShell GUIs
Topic: Datagridview datasource
Replies: 19
Views: 212

Re: Datagridview datasource

This version adds the ability to cancel both an edit and an add.