Support Forums

Search found 10021 matches

by jvierra
Wed Nov 30, 2016 9:29 am
Forum: PowerShell GUIs
Topic: Export All Output Windows Text to File
Replies: 3
Views: 22

Re: Export All Output Windows Text to File

You cannot capture "Write-Host" output.
by jvierra
Tue Nov 29, 2016 11:34 pm
Forum: PowerShell GUIs
Topic: Combobox DisplayMember & Valuemember help
Replies: 10
Views: 56

Re: Combobox DisplayMember & Valuemember help

$combobox1.DataSource.Rows.Remove($combobox1.DataSource.Rows[0])
$combobox1.DataSource.Rows.Add('A New Test', 'New Stuff')
$combobox1.Refresh()
$combobox1.SelectedIndex = 0
by jvierra
Tue Nov 29, 2016 11:14 pm
Forum: PowerShell GUIs
Topic: Combobox DisplayMember & Valuemember help
Replies: 10
Views: 56

Re: Combobox DisplayMember & Valuemember help

As noted - it is not designed to work the way you want.
by jvierra
Tue Nov 29, 2016 10:06 pm
Forum: PowerShell GUIs
Topic: Combobox DisplayMember & Valuemember help
Replies: 10
Views: 56

Re: Combobox DisplayMember & Valuemember help

Here are two ways to make a ComboBox editable: $form1_Load = { $dt = New-Object System.Data.DataTable $dt.Columns.Add('Name') $dt.Columns.Add('Stuff') $dt.Rows.Add('Test1', 'Value1') $dt.Rows.Add('Test2', 'Value2') $dt.R...
by jvierra
Tue Nov 29, 2016 9:54 pm
Forum: PowerShell GUIs
Topic: Combobox DisplayMember & Valuemember help
Replies: 10
Views: 56

Re: Combobox DisplayMember & Valuemember help

The following is the only way to make the key editable: $form1_Load = { $dt = New-Object System.Data.DataTable $dt.Columns.Add('Name') $dt.Columns.Add('Stuff') $dt.Rows.Add('Test1', 'Value1') $dt.Rows.Add('Test2', 'Value2'&#...
by jvierra
Tue Nov 29, 2016 9:39 pm
Forum: PowerShell GUIs
Topic: Combobox DisplayMember & Valuemember help
Replies: 10
Views: 56

Re: Combobox DisplayMember & Valuemember help

Combo boxes are not designed to be directly editable. You can replace a complete item by removing it and adding a new item of the same type. Generally using a ComboBox this way indicates that you are trying to use the wrong control. You can change the properties of items directly in this way: $butto...
by jvierra
Tue Nov 29, 2016 7:59 pm
Forum: PowerShell GUIs
Topic: Combobox DisplayMember & Valuemember help
Replies: 10
Views: 56

Re: Combobox DisplayMember & Valuemember help

Here is how to add custom objects to a list or ComboBox and retrieve the members. You can add any type of object and retrieve any property by name. $form1_Load = { $objects = @( [pscustomobject]@{ Name = 'Test1'; Stuff = 'Value1' }, [pscustomobject]@{ Name = 'Test2'; Stuf...
by jvierra
Tue Nov 29, 2016 11:08 am
Forum: Windows PowerShell
Topic: Make exe
Replies: 26
Views: 1805

Re: Make exe

I really think you can get an answer if you figure out how to ask a clear question with a simple code example of your issue. I cannot really recommend a consultant but your search engine would be able to find many consultants in you area. You will need t find someone who can sit with you for as long...
by jvierra
Tue Nov 29, 2016 10:41 am
Forum: Windows PowerShell
Topic: Create New-PSDrive in Invoke-Command
Replies: 1
Views: 37

Re: Create New-PSDrive in Invoke-Command

You cannot remotely access a third system in a remote connection. Nether command will work remotely.
by jvierra
Mon Nov 28, 2016 8:01 pm
Forum: PowerShell GUIs
Topic: Question about GUI Template
Replies: 8
Views: 88

Re: Question about GUI Template

I don't but I am sure there are hundreds out there. I have some old ones in MFC but that is not helpful with the Net version.

Go to advanced search

cron