How to run a WinForms Application Inside the Web Browser

Winforms app to web

Do you have a WinForms (C#) application that you wish to publish on the web? Thinfinity® VirtualUI allows you to convert WinForms to web application by adding a small line of code to your C# application so it can then be accessed from any OS and device via an HTML-able browser.

Before starting please make sure you are running the latest Thinfinity VirtualUI version and download our C# demo:

Now you can follow these steps to integrate a .NET WinForms (C#) application with Thinfinity VirtualUI:

1. Open Microsoft Visual Studio

2. Open the .sln project of the provided demos:


Running a WinForms Application Inside your Web Browser


3. Right-click on the project name in the ‘Solution Explorer’ panel and then select ‘Add’ > ‘Existing Item’. Look for the Thinfinity.VirtualUI.cs file, which is typically located in C:\Program Files\Thinfinity\VirtualUI\Dev\dotNet\


Running a WinForms Application Inside your Web Browser


4. In the program.cs file, add the following line:


Running a WinForms Application Inside your Web Browser


5. Compile your program and run it in debug mode.
Once the debug is finished you will see this message popup:


Running a WinForms Application Inside your Web Browser


If you press the ‘Start Web Browser’ button, a web browser will open pointing to the application. The application will also open in desktop mode.

6. Alternatively, you are able to choose “Do not show again” and manually launch the application on the web by going to the “Thinfinity VirtualUI Development Server” systray icon:


Running a WinForms Application Inside your Web Browser


This systray icon shows up whenever you debug an application with your IDE. You can right-click on the icon and then click on the ‘Open Web Browser’.
A Web browser window will open and your application will be running inside.


Running a WinForms Application Inside your Web Browser


When you run your application under an IDE, it automatically starts in web mode. In order to access the application, open your web browser and point to


8. You can also click on the ‘Server Manager‘ menu of the tray bar icon to access the Development Server Manager.

If you found this article interesting and want to know more about Thinfinity VirtualUI,
you can contact us or schedule a 15-minute demo call with one of our Sales Engineers.

Comments (1)

Run WinForms online! Convert WinForms to web application with Thinfinity VirtualUI.
With little or no development, you can how to embed your WinForms application within any HTML5 web browser, and run it as a native web app.

As you already know, Thinfinity VirtualUI is a web-enabling SDK to run apps on a browser without rewriting the code.

Explore our other remoting and web-enabling solutions, enjoy our free trials, or request a custom demo HERE. No commitment!

Leave a comment

Privacy Preferences
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.