Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ActiveX control uses global variables
#3
In QM3 can use WebView2 (Chromium) in dialogs easily and for free. Install NuGet package Microsoft.Web.WebView2. On Win7 also need to install Microsoft Edge Canary.

https://docs.microsoft.com/en-us/microso.../webview2/

C# code:
// script ""
/*/ nuget -\Microsoft.Web.WebView2; /*/

using Microsoft.Web.WebView2.Wpf;
using System.Windows;
using System.Windows.Controls;

var b = new wpfBuilder("Window").WinSize(700, 600);

b.Row(-1).Add(out WebView2 k);
k.Source = new("https://www.quickmacros.com");

b.R.AddSeparator();

b.AddButton("Navigate", _=> {
    k.CoreWebView2.Navigate("https://www.quickmacros.com/forum");
}).Align("L");

b.R.AddOkCancel();
b.End();
if (!b.ShowDialog()) return;


Messages In This Thread
RE: ActiveX control uses global variables - by Gintaras - 08-15-2022, 07:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)