Search found 5889 matches

by davidc
Fri Jun 07, 2019 2:50 pm
Forum: PowerShell Studio
Topic: How to open PDF or HTML file within project folder?
Replies: 3
Views: 854

Re: How to open PDF or HTML file within project folder?

Are you trying to open a document with its default association from your GUI? You can use Start-Process cmdlet to trigger the file to open: Start-Process -FilePath "Path To pdf file" You can use the Click event for the button to trigger the cmdlet or the LinkLabel's LinkClicked event. I also recomme...
by davidc
Fri Jun 07, 2019 12:58 pm
Forum: PowerShell Studio
Topic: What languages or code can be used in Powershell Studio Forms?
Replies: 3
Views: 831

Re: What languages or code can be used in Powershell Studio Forms?

Yes, those lines are .NET code to ensure you can use the UI libraries. By default, these are not loaded into PowerShell.
by davidc
Thu Jun 06, 2019 10:32 am
Forum: PowerShell GUIs
Topic: in the designer is different from the layout at debug time.
Replies: 6
Views: 195

Re: in the designer is different from the layout at debug time.

Make sure you anchor your controls or use a TableLayoutPanel to keep the controls from overlapping.

I recommend the following article as well:

https://info.sapien.com/index.php/guis/ ... i-displays
by davidc
Thu Jun 06, 2019 10:29 am
Forum: PowerShell GUIs
Topic: Web browser control prompts script error, does not display content
Replies: 5
Views: 237

Re: Web browser control prompts script error, does not display content

FYI, we released a code snippet (shortcut: setWebBrowserEmulation) that sets the emulation mode of the WebBrowser control (host dependent / running executable). This can help with compatibility in some cases.

https://www.sapien.com/blog/2019/03/06/ ... -v5-6-160/
by davidc
Thu Jun 06, 2019 10:24 am
Forum: PowerShell Studio
Topic: What languages or code can be used in Powershell Studio Forms?
Replies: 3
Views: 831

Re: What languages or code can be used in Powershell Studio Forms?

PowerShell Studio uses PowerShell exclusively when working with the Forms / GUI designer. Since PowerShell is built upon the .NET framework, you can easily tap into the .NET assemblies to expand PowerShell's functionality. In regards to VBScript and C#: PowerShell Studio does provide syntax coloring...
by davidc
Mon Jun 03, 2019 7:59 am
Forum: PowerShell Studio
Topic: Please offer an non-MRU-Tab Switching solution!
Replies: 3
Views: 1030

Re: Please offer an non-MRU-Tab Switching solution!

Hello Jahoschua,

You can disable the document selector in Option->General:
Show the doucment selector when navigating tabs.png
Show the doucment selector when navigating tabs.png (43.15 KiB) Viewed 945 times

Then you should be able press [Tab + Ctrl] and [Tab + Shift + Ctrl] to navigate the tabs without the dialog.
by davidc
Fri May 31, 2019 7:13 am
Forum: PowerShell Studio
Topic: Bug: Brace Formatting Option
Replies: 2
Views: 1100

Re: Bug: Brace Formatting Option

Thank you for reporting the issue. We missed this one and sorry for the inconvenience.

This issue will be resolved in the next service release.
by davidc
Fri May 31, 2019 7:07 am
Forum: PowerShell Studio
Topic: Assembly Files Explained and Most Commonly Used
Replies: 3
Views: 1055

Re: Assembly Files Explained and Most Commonly Used

Assemblies (*.dll) are reusable libraries of code for .NET. Generally, you will not need to deal with assemblies directly. The option is there so users can load custom assemblies that are not part of .NET and it allows PowerShell Studio to provide PrimalSense for the custom types defined in the asse...
by davidc
Thu May 30, 2019 2:56 pm
Forum: PowerShell GUIs
Topic: Unable to modify text in RichTextBox (when copied from Skype for Business)
Replies: 4
Views: 255

Re: Unable to modify text in RichTextBox (when copied from Skype for Business)

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]

I suspect that the clipboard contains RTF text or other format that has some sort of read only tag embedded. I'm not sure how to prevent that.
You could try overwriting the Ctrl + V keyboard combo and handle the pasting yourself.