Support Forums

We are currently experiencing failures on the SAPIEN store and are working hard to rectify the situation. In the meantime, please DO NOT place an order through the store. Instead, please contact us directly at sales@sapien.com. We apologize for any inconvenience.

Search found 10501 matches

by jvierra
Sat Mar 18, 2017 3:18 pm
Forum: PowerShell GUIs
Topic: Multi combobox update
Replies: 10
Views: 1025

Re: Multi combobox update

For textboxes use the SelectedIndexChanged event to set the other controls. You could also just bind the same table to all ComboBoxes.

Using a grid can only be well synced with a binding adapter.

Code: Select all

$cbCustomer_SelectedIndexChanged={
$txtName.Text = $cbCustomer.SelectedItem.Name
}
by jvierra
Sat Mar 18, 2017 2:14 pm
Forum: PowerShell GUIs
Topic: Create exe: no output in richtextbox?
Replies: 19
Views: 1374

Re: Create exe: no output in richtextbox?

SCCM works the same way. Iy also has more ways to fine tune an install from an MSI.

We can also use Group Policy or DSC to deploy and upgrade.
by jvierra
Fri Mar 17, 2017 2:10 pm
Forum: PowerShell GUIs
Topic: Remove text from richtexbox (to use status of jobs)?
Replies: 14
Views: 5029

Re: Remove text from richtexbox (to use status of jobs)?

I will also note that a richtest has a "Lines" property but it can only be editedd by a complete replacement ot "Lines"

$richtext.Lines = $richtext.Lines | ?{$_ -notmatch 'value'}
by jvierra
Fri Mar 17, 2017 9:10 am
Forum: PowerShell GUIs
Topic: Remove text from richtexbox (to use status of jobs)?
Replies: 14
Views: 5029

Re: Remove text from richtexbox (to use status of jobs)?

To answer your basic question- if it helps - consider the following: # $listview1.Items.Add('one','one',0) $listview1.Items.Add('two', 'two', 0) $listview1.Items.Add('three', 'three', 0) $idx= $listview1.Items.IndexOfKey(...
by jvierra
Fri Mar 17, 2017 8:49 am
Forum: PowerShell GUIs
Topic: Remove text from richtexbox (to use status of jobs)?
Replies: 14
Views: 5029

Re: Remove text from richtexbox (to use status of jobs)?

A simple way to do this is:

Code: Select all

$completed = {
Param($job)
$listbox1.Items.Remove($job.Name)
}
$myjobname = 'somejob'
Add-JobTracker -Name $myjobname ... -CompletedScript $completed
by jvierra
Fri Mar 17, 2017 8:25 am
Forum: PowerShell GUIs
Topic: Remove text from richtexbox (to use status of jobs)?
Replies: 14
Views: 5029

Re: Remove text from richtexbox (to use status of jobs)?

Add the $JobList collection to a list box as a DataSource as with any other control. Set the DisplayMember to display the job Name. Add a refresh of the ListBox to the timer tick event.
by jvierra
Fri Mar 17, 2017 8:15 am
Forum: PowerShell GUIs
Topic: Remove text from richtexbox (to use status of jobs)?
Replies: 14
Views: 5029

Re: Remove text from richtexbox (to use status of jobs)?

The job list is dynamic. Just add it to the ListBox or ListView as a data source and refresh the control when the timer tick occurs. The rest will be automatic.
by jvierra
Thu Mar 16, 2017 11:15 am
Forum: PowerShell GUIs
Topic: Datagridview double sort
Replies: 1
Views: 50

Re: Datagridview double sort

Default column sort can only sort the column chosen. To sort on more than one column set the "RowSort" properties to the rows to be sorted. ([System.Data.DataTable]$datagridview1.DataSource).DefaultView.Sort = 'Field1 ASC,Filed2 ASC' Field1 and Field2 are the names of the d...
by jvierra
Thu Mar 16, 2017 10:07 am
Forum: PowerShell GUIs
Topic: Why is this not working .. $variable to RitchtextBox.append
Replies: 1
Views: 60

Re: Why is this not working .. $variable to RitchtextBox.append

Have you tried running it with the debugger? Perhaps your event is not attached to the button.
by jvierra
Thu Mar 16, 2017 10:04 am
Forum: PowerShell GUIs
Topic: Datagrid item selection + "loading" while executing
Replies: 41
Views: 1128

Re: Datagrid item selection + "loading" while executing

You can choose any event. Just right click on the control and select "Add Events" and insert all events that you need. The control designer component of each control has a default event selected. This is initially set by the control vendor. To change it we have to have access to the design...

Go to advanced search