Handle AxHost events designed for WebBrowser (C#) - c#

We've got an ActiveX control that was designed primarily for web browsers (MSN Chat Control), and we've embedded it in our Windows Forms (.Net Core 6) application.
Traditionally, when the ActiveX control is within a web browser, the Chat Control is able to redirect the main page (hosting the frame), open new windows, etc.
It's a long shot, but I'm wondering if anyone is able to suggest how we can capture these for handling within our application?

Related

Popup Authentication Window In Maui Blazor

I'm using blazor maui to develop a windows application and need to authenticate the user with graph, I can open up the URL in the default browser but would like a popup window instead as is the norm in GUI applications such as Outlook etc when having to login.
The WebBrowser control for winforms seems to do what I need but is for winforms and doesn't appear to support .net 6 and maui. Webview2 also seems to do what I need but I can't get it to work in Maui as the ressources i've found are mainly focused on WPF.
Is there anything like this in Maui and how would I go about implementing it?
By creating a new contentpage and the showing it in a new window as shown here and in the contentpage having a webview as documented here. I achieved what I wanted, just remember to have height request and width request in your webview or it won't show.

Testing WPF simple application on multiple web browsers

I'm newbie in WPF/Silverlight world. In the first step , I developed a "Hello world" application and simply run it but the problem is application successfully run only on Internet explorer. When I changed my browser like chrome or firefox etc, application pop up a Save window which means browser unable to understand the filetype. I want to know any plugin required to smothly run my WPF project on different web browsers.
IMO, You are referring to Silverlight and not WPF
WPF Applications are Desktop Applications and they are not made for Browsers.
And Silverlight is cross-platform, across browsers.
You can download and install the plugin from here,
http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx
I think you are looking for Silverlight, not 100% sure tough
WPF browser based application can run in the IE and firefox web browser. One can use silverlight for implementing the WPf browser based application. But silverlight is the small subset of WPF framework. The machine running the WPF web browseer based application must be installed with the .Net runtime environment. WPF web browser based application ideally used for the intranet usages.

C# WinForm application supporting Google Checkout?

I am working on a project where entire application is C# WinForm desktop application. Now our client want to support an action on a form which results in user being charged via his/her Google checkout account. I am wondering if I can provide a checkout interface similar to web browser using windows form or not. If so, How?
have you tried the native winforms WebBrowser control?
The WebBrowser control lets you host Web pages and other browser-enabled documents in your Windows Forms applications. You can use the WebBrowser control, for example, to provide integrated HTML-based user assistance or Web browsing capabilities in your application. Additionally, you can use the WebBrowser control to add your existing Web-based controls to your Windows Forms client applications.
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx

Windows Forms WebBrowser control - supports Javascript?

The Windows Forms WebBrowser control (Visual Studio) hosts Web pages and provides Web browsing capabilities to your application.
Does the WebBrowser control have inbuild support for rendering content loaded through Javascript, CSS etc.? Or does it render only plain HTML?
It supports javascript, css and etc. WebBrowser component is wrapper of Internet Explorer, and it works like Internet Explorer installed on your computer.
Flash, Silverlight, Video play correctly too.
Also, you may interact with page content from your .NET code or call .NET methods from javascript through windows.external object.

can we run javascript in .net window application

hi I am developing a application in which i want to show pop up and loading image . for this i need to use jquery can it possible to run these script in .net window application form as iam not using asp .net .
You can add in an internet browser control onto your windows form and load/run the javascript within the browser control.
It's not possible. You must open a popups in windows applications byc creating new form instances.
new PopupForm().Show();

Categories

Resources