Search found 12091 matches

by jvierra
Fri Apr 20, 2018 12:04 pm
Forum: PowerShell GUIs
Topic: Adding text to a listbox
Replies: 8
Views: 193

Re: Adding text to a listbox

If you load the CSV to a DataTable the sort and relation can be defined and the lists will be automatic.
by jvierra
Fri Apr 20, 2018 12:04 pm
Forum: PowerShell GUIs
Topic: Adding text to a listbox
Replies: 8
Views: 193

Re: Adding text to a listbox

Relational filtering:

$systemtarget = $ESPSDetails | where{$_.MissionPartner -eq 'System2' }| select target -unique
by jvierra
Fri Apr 20, 2018 12:01 pm
Forum: PowerShell GUIs
Topic: Adding text to a listbox
Replies: 8
Views: 193

Re: Adding text to a listbox

The following code makes no sense. It loads the same thing into both list boxes incorrectly. Else { $ESPSDetails = Import-Csv $textbox1.Text $Platforms = $ESPSDetails | select Target | Sort Target -Unique $MissionPartners = $ESPSDetails | select MissionPartner | Sort MissionPartner -Unique Load-List...
by jvierra
Fri Apr 20, 2018 11:42 am
Forum: PowerShell GUIs
Topic: Adding text to a listbox
Replies: 8
Views: 193

Re: Adding text to a listbox

I thought it was the XML that was an issue?
by jvierra
Fri Apr 20, 2018 7:40 am
Forum: PowerShell GUIs
Topic: Put SQL output in variable
Replies: 1
Views: 92

Re: Put SQL output in variable

How can you take an output that has many rows and columns and put it in a variable? A table is a variable. If you load the data correctly you will have a table variable. The following will return a table with one row. function Get-Query_VW_Controlevragen{ Param( $SamAccountName ) $Connection = New-O...
by jvierra
Fri Apr 20, 2018 7:28 am
Forum: PowerShell GUIs
Topic: Adding text to a listbox
Replies: 8
Views: 193

Re: Adding text to a listbox

The XML file loads into both ListBoxes. What is it that is supposed to happen? I still cannot quite understand what you are trying to do.
by jvierra
Thu Apr 19, 2018 3:52 pm
Forum: Windows PowerShell
Topic: Service Build - v5
Replies: 4
Views: 128

Re: Service Build - v5

The event log should have events for the start and any failures to start even if you do not place any "Write-Host" cpmmands in the service. This is the default behavior for a service.
by jvierra
Thu Apr 19, 2018 2:03 pm
Forum: Windows PowerShell
Topic: Service Build - v5
Replies: 4
Views: 128

Re: Service Build - v5

Permissions and firewall settings.
by jvierra
Thu Apr 19, 2018 9:10 am
Forum: PowerShell GUIs
Topic: Adding text to a listbox
Replies: 8
Views: 193

Re: Adding text to a listbox

Hello nai0248 Without your files it would be very difficult to understand what the issue is. At a quick glance it appears that your XML extraction is incorrect. The selectin methods used will return nodes and not text and this cannot be displayed in a ListBox. Create a simple form and just load the ...
by jvierra
Wed Apr 18, 2018 2:30 pm
Forum: PowerShell GUIs
Topic: Management Groups in Listview
Replies: 3
Views: 145

Re: Management Groups in Listview

We can answer specific questions which I have as best I can given the request. It is beyond the scope of this and most forums to help you design a solution. I recommend starting over and simplifying the form. Once you have become familiar with how t implement code in a form using control events and ...