Support Forums

Search found 9700 matches

by jvierra
Wed Sep 21, 2016 2:25 pm
Forum: PowerShell GUIs
Topic: Textbox output looses format over time
Replies: 7
Views: 40

Re: Textbox output looses format over time

Here is an example of using the RTF control:
by jvierra
Wed Sep 21, 2016 2:08 pm
Forum: PowerShell GUIs
Topic: Textbox output looses format over time
Replies: 7
Views: 40

Re: Textbox output looses format over time

The following would also work better: $textboxOutput.Text = @' This option will perform the following task(s: 1) The selected system will attempt to contact the ITM KMS server on the citrix corporate network. The following pre-requisites are required: 1) Internet Access. 2) Conne...
by jvierra
Wed Sep 21, 2016 2:05 pm
Forum: PowerShell GUIs
Topic: Textbox output looses format over time
Replies: 7
Views: 40

Re: Textbox output looses format over time

Change to this: $textboxOutput.Lines += 'This option will perform the following task(s:' $textboxOutput.Lines += '' $textboxOutput.Lines += '1 The selected system will attempt to contact the ITM KMS server on the citrix corporate network.' $textboxOutput.Lines += '...
by jvierra
Wed Sep 21, 2016 1:55 pm
Forum: Wish List and Feature Requests
Topic: Design time Properties needs "Parent" property.
Replies: 1
Views: 75

Design time Properties needs "Parent" property.

For example see: https://www.sapien.com/forums/viewtopic.php?t=10599&p=57525#p57525 When a conrol is dropped on a "container" control the container becomes the parent by default. This is not always the desired condition. We can "re-parent" the control in the "Load" ...
by jvierra
Wed Sep 21, 2016 1:46 pm
Forum: PowerShell GUIs
Topic: Images on a UHD display are displaced
Replies: 5
Views: 54

Re: Images on a UHD display are displaced

All controls in the image must be anchored top,left. All must be parented by the form. The renderer will translate relative references oddly with some graphics drivers.

Since we can't test with you graphics this will be something you will need to work out.
by jvierra
Wed Sep 21, 2016 1:44 pm
Forum: Windows PowerShell
Topic: Appending to a sring in a XML file
Replies: 6
Views: 50

Re: Appending to a sring in a XML file

Here is a quick example using Select-Xml $result = Select-Xml -Path app.config -XPath '//add[@key="%123_MONIKERS%"]' $result.Node.Value += 'MY NEW DATA' #either of the following $result.Node.PsBase.OwnerDocument.Save($result.Path) $result.Node.PsBase.OwnerDocument.S...
by jvierra
Wed Sep 21, 2016 1:12 pm
Forum: Windows PowerShell
Topic: Appending to a sring in a XML file
Replies: 6
Views: 50

Re: Appending to a sring in a XML file

Here is a better example: Assuming this file 'app.config' <?xml version="1.0" encoding="utf-8"?> <!-- the root web configuration file --> <configuration> <location allowOverride="true"> <system.web> <securityPolicy> <trustLevel name="Full" policyFile="int...
by jvierra
Wed Sep 21, 2016 12:55 pm
Forum: Windows PowerShell
Topic: Appending to a sring in a XML file
Replies: 6
Views: 50

Re: Appending to a sring in a XML file

The following is the easiest and safest way to edit an XML file. [xml]$xml=Get-Content yourfile.xml (or config) $node=$xml.SelectSingleNode('//add[@key="%123_MONIKERS%"]') $node.Value = (use string methods to alter value.) <# example: $node.Value = $node.Val...
by jvierra
Wed Sep 21, 2016 11:26 am
Forum: PowerShell GUIs
Topic: Redirect user to URL using IE
Replies: 3
Views: 34

Re: Redirect user to URL using IE

To open a link in the default browser use this line:

Start-Process 'http://www.google.com'

Go to advanced search