Webbrowser control - How to display Google Chrome in a control

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
ddunst
Posts: 2
Joined: Thu Nov 14, 2019 1:27 pm

Webbrowser control - How to display Google Chrome in a control

Post by ddunst »

Powershell Studio, Version: 5.7.173 on Windows 10
PowerShell version(s): 5.1.18362.1110

So the Webbrowser control only supports IE (true?)
If so, with IE going away, what control can we use to display a website inside of an application developed using Powershell Studio?
Will Sapien be adding the WebView2 control? (can't post the URL, but you can google WebView2
Is there another control we should be using?

Thanks

User avatar
brittneyr
Site Admin
Posts: 647
Joined: Thu Jun 01, 2017 7:20 am
Answers: 8
Been upvoted: 6 times

Re: Webbrowser control - How to display Google Chrome in a control

Post by brittneyr »

You are correct, the WinForms WebBrowser control only supports IE. To have it run the latest version of IE, you need to set it. A snippet as to how to set that can be found in the snippet panel:
SPS_BrowserSnippet.png
SPS_BrowserSnippet.png (17.42 KiB) Viewed 414 times
At the moment, the new WebView2 control that was built on the latest version of Edge with Chromium is a preview. This is on our list of things to do, but at this time, this is no timeline as to when this will be added.
Brittney Ryn
SAPIEN Technologies, Inc.