Search found 13014 matches

by jvierra
Mon Jan 21, 2019 4:37 am
Forum: Windows PowerShell
Topic: Launch IE tabs based on TXT file
Replies: 3
Views: 34

Re: Launch IE tabs based on TXT file

Just read them from the text file and add them to the command in a loop.

help foreach -online
by jvierra
Mon Jan 21, 2019 4:01 am
Forum: Windows PowerShell
Topic: Launch IE tabs based on TXT file
Replies: 3
Views: 34

Re: Launch IE tabs based on TXT file

Internet Explorer has a command line switch to do this.
or
Start-Process 'http://www.google.com'

Specifying the URL to start will open a new tab in the currently running IE browser.
by jvierra
Mon Jan 21, 2019 1:29 am
Forum: PowerShell GUIs
Topic: Looping through checkboxes on a WPF form
Replies: 10
Views: 78

Re: Looping through checkboxes on a WPF form

Yes you can register the name when you are dynamically building a form but the Checkbox container is defined in the XAML so the namescope is already created and the object will be registered when it is added. See: https://docs.microsoft.com/en-us/dotnet/api/system.windows.frameworkelement.registerna...
by jvierra
Sun Jan 20, 2019 5:26 pm
Forum: PowerShell GUIs
Topic: Looping through checkboxes on a WPF form
Replies: 10
Views: 78

Re: Looping through checkboxes on a WPF form

You have to get the stackpanel by name first then use it to find the contained controls.
by jvierra
Sun Jan 20, 2019 4:28 pm
Forum: PowerShell GUIs
Topic: Looping through checkboxes on a WPF form
Replies: 10
Views: 78

Re: Looping through checkboxes on a WPF form

Yu still need to use the "FindName" on the StackPanel to find names within the StackPanel.
by jvierra
Sun Jan 20, 2019 4:14 pm
Forum: PowerShell GUIs
Topic: Looping through checkboxes on a WPF form
Replies: 10
Views: 78

Re: Looping through checkboxes on a WPF form

Also note that some elements have a "FindName" method. A StackPanel is a new scope so you need to use FindName on the StackPanel that contains the element you are looking for.
by jvierra
Sun Jan 20, 2019 4:00 pm
Forum: PowerShell GUIs
Topic: Looping through checkboxes on a WPF form
Replies: 10
Views: 78

Re: Looping through checkboxes on a WPF form

You have to give each control a name in your XAML definition.
by jvierra
Sat Jan 19, 2019 8:28 pm
Forum: PowerShell GUIs
Topic: printing the gui form
Replies: 4
Views: 75

Re: printing the gui form

Another method of printing is to use the "Document Print" classes.

See attached.
by jvierra
Sat Jan 19, 2019 8:26 pm
Forum: PowerShell GUIs
Topic: printing the gui form
Replies: 4
Views: 75

Re: printing the gui form

You can also export the data from the grid to a file. THe CSV can be easily printed by calling:

Start-Process <file.csv> -verb Print

See the attached example.
by jvierra
Thu Jan 17, 2019 11:31 am
Forum: PowerShell GUIs
Topic: Stop Unhandled Exception Alert
Replies: 3
Views: 39

Re: Stop Unhandled Exception Alert

You can "Close" a form. An "exit" when compiled will throw an exception in the framework.