I would appreciate if someone can guide me a bit regarding CoreWebView2. I'm NXOpen developer /language=Vb.Net /DevApp = VS2019 Prof But the topic in this thread is totally of topic NX.
I just want to have a button inside the NX GUI, where users can fire up our company's support page, Instead of doing this from their web browser manually...
On top of that, I would like that some of the forms and textboxes on the loaded support page,should be pre-populated based on some values I will prepare in my NX application....
(note: I can easily fire up the support page by using ShellExecute in a new Process, but this doesn't help me, when also the loaded page shall be manipulated afterwards.)
So instead, I do think I can achieve my goal, by using the MS WebView2 class....
-
Fire up the specific url in a new Browser instance (the users default or MS Edge)
-
Wait until loaded..
-
Use JavaScript to get the DOM element ( I have around three elements that shall be manipulated / two dropdowns / one Textbox )
-
Use JavaScript to set the DOM's property (value,dropdowns index, etc..)
As a starting point, I will be happy just to be able to fire up the url in users webbrowser (Edge or default), using WebView2 claas..
(I do have added the References & Imports in my VS2019 Solution..) Maybe someone can help a bit regarding how to initiate a CoreWebView2 instance (VB.Net), based on a specific URL Address..
Thank you...
I have described the details above...