Windows form integration with html page

Asked

Viewed 560 times

1

I have an application that is a Windows Forms that I need to integrate into an HTML page of my web application

In case it causes Windows Form to stay there fixed as if the two were one thing.

This is possible?

2 answers

2


Using only Html is not possible.

You can include in your Html page applications developed with Flash and Silverlight, for example.

There was a time when it was very common to also include components Activex (which can be developed in any language) or Java applets; but this type of feature is a potential risk for the user so there is a tendency not to be supported anymore or have their use hindered by browsers.

There are options that make it look like the application is running inside the Browser, such as the Citrix, but the application will not be embedded in an HTML page.

  • With Websockets would have some solution?

  • 1

    @Lorena What I know by Websockets is network communication. It does not seem to be related.

  • this is exactly what I need, it doesn’t need to be built in but it looks like it is, it won’t have data exchange between the html page and the external software, I just need to make the user see the two together as if they were just one.

  • 1

    @Lorena No can do. The web page would have to have the browser consume this external application, which the browser has no way of knowing if it is safe or not. The browser needs to limit as much as possible the access of a web page to the user’s machine; the idea is to make safe the web navigation even if the user does not previously know the suitability of the link he will click.

0

You could put a Webbrowser in your form, then put it in the code:

 [nome do webbrowser].DocumentText = "Código HTML em string";
ou [nome do webbrowser].Navegate("url da página HTML ou caminho no computador");

You could use webbrowser’s Documenttext to interact, modify HTML code or read code, and interact

Browser other questions tagged

You are not signed in. Login or sign up in order to post.