Search found 12892 matches

by jvierra
Sun Nov 11, 2018 4:51 am
Forum: PowerShell GUIs
Topic: Datagridview datasource
Replies: 19
Views: 242

Re: Datagridview datasource

You can use a select statement to choose the rows or you can set any column as hidden.
by jvierra
Fri Nov 09, 2018 6:50 pm
Forum: PowerShell GUIs
Topic: GUI - Display data - table format - color? how?
Replies: 41
Views: 819

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

Well, as I suspected, no one seems to ever have decided to export the contents of a ListView. The issue is that ListView is not a data aware control and has no sense of data. It is just a bag of controls designed to allow different methods of viewing information. There are many third party ListView ...
by jvierra
Fri Nov 09, 2018 5:01 pm
Forum: PowerShell GUIs
Topic: Please Help mdiparent !
Replies: 3
Views: 135

Re: Please Help mdiparent !

There is an example somewhere in this forum.
by jvierra
Fri Nov 09, 2018 5:00 pm
Forum: PowerShell GUIs
Topic: GUI - Display data - table format - color? how?
Replies: 41
Views: 819

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

Where is the hash? Where is the custom object?

You have to enumerate "Items" and "SubItems" and add the "Text" to the hash keyed by "Name". See above example of how to use a hash.

I wiIl search and see if I can find an example.
by jvierra
Fri Nov 09, 2018 11:29 am
Forum: PowerShell GUIs
Topic: Datagridview datasource
Replies: 19
Views: 242

Re: Datagridview datasource

The code is all you need to see how this works. Just run the form and see how it works.
by jvierra
Fri Nov 09, 2018 10:30 am
Forum: PowerShell GUIs
Topic: Datagridview datasource
Replies: 19
Views: 242

Re: Datagridview datasource

You are asking for a complete solution. Forums are not good places to get solutions. They are more attuned to answering specific questions. The best place to start would be to read some of the articles on GUI scripting in the Info center. They will help you to learn about how to use controls and how...
by jvierra
Fri Nov 09, 2018 6:49 am
Forum: PowerShell GUIs
Topic: GUI - Display data - table format - color? how?
Replies: 41
Views: 819

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

That is just an example of what properties are on a ListViewItem. You need to use them to create a custom object and output that. Start with an empty hash and add the "Name" and "Text" to the hash then convert to an object. $hash = @{} $Hash.Add{$_.Name,$_.Text} After all subitems are added just co ...
by jvierra
Fri Nov 09, 2018 5:00 am
Forum: PowerShell GUIs
Topic: GUI - Display data - table format - color? how?
Replies: 41
Views: 819

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

PowerShell Studio has a built in debugger.

I recommend starting by reading the product manual. You can access it on the help tab.
by jvierra
Fri Nov 09, 2018 3:38 am
Forum: PowerShell GUIs
Topic: GUI - Display data - table format - color? how?
Replies: 41
Views: 819

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

You have to extract the text of each subitem.

Code: Select all

$listview_sysinfo.Items | 
    select -expand SubItems |
        select Name, Text
    }
by jvierra
Fri Nov 09, 2018 12:41 am
Forum: PowerShell GUIs
Topic: Please Help mdiparent !
Replies: 3
Views: 135

Re: Please Help mdiparent !

Sapien does not have support for MDI because there are some issues with MDI and PowerShell. It can be done only by either hand coding the form or by programmatically editing the form script at runtime.