Run VB.Net software as a Web Application

Run VB.Net software as a Web Application

In this new article, we will show you how to adapt your Visual FoxPro code so you can run VB.Net developments in the cloud with Thinfinity VirtualUI.


Bear in mind in this example we’ve already added Thinfinity.VirtualUI.vb.

You can find this in “C:\Program Files\Thinfinity\VirtualUI\dev\dotNET” so you can include it in your app.


1. Starting the app

To ensure your application loads fine with VirtualUI on the web, we recommend starting VirtualUI right at the begging. In the example, you’ll see that we’ve created a module called ‘Startup.vb’ that makes the virtualui.start():





Module Startup:

''<stathread()>

Dim virtualui As New Cybele.Thinfinity.VirtualUI()

Sub Main()

</stathread()>

virtualui.Start()

''// virtualui.ClientSettings.MouseMoveGestureAction = MouseMoveGestureAction.MM_ACTION_WHEEL

Application.EnableVisualStyles()

Application.SetCompatibleTextRenderingDefault(False)

Application.Run(New Form1())

End Sub

End Module


And this is the startup object:





If you start the app in the IDE now, you should get a pop-up to start the web browser:




And finally be able to see the app in the browser, like this:




Keep in mind, this is running in the ‘Development environment’, based on the screenshot above you can see it is calling port 6080, which is the default port of the development server. You will have to port the .exe to the “production” server, which listens on port 6580.



2. Adding the app to the server environment

In the Application tab add a new profile:




In this window, we will configure the VB.Net app.

Tab: General



Tab: Credentials

“Name”: The name you want the Web Application to display.

“Program path and file name”: Click open and select the .exe compiled with the Startup for VirtualUI

“Arguments”: Add any argument your app might need.

Under the “Credentials” tab, configure a user that has read and write permission where your app is located:




























Tab: Permissions

 For testing purposes, click on “Allow anonymous access”




Click “OK”, and then click “Apply”.



3. Running the app

Open a new browser window and navigate to http://127.0.0.1:6580



If you’re a GitHub user, you may want to check our VirtualUI GitHub project.

Any questions?

Get technical support here



    • Related Articles

    • Run Visual FoxPro applications in the cloud

      In this new article, we will show you how to adapt your Visual FoxPro code so you can run VFP apps in the cloud with Thinfinity VirtualUI. App example: https://www.cybelesoft.com/support/files/DemosVUI/VisualFoxPro.zip 1. Starting the app To run the ...
    • Thinfinity VirtualUI: Publishing an Application

      Product: Thinfinity VirtualUI Version: 3 and above Introduction Thinfinity VirtualUI is a software solution designed to facilitate web integration for Windows-based applications. This guide will walk you through the process of getting started with ...
    • Thinfinity VirtualUI: Integration with Different Coding Languages

      Product: Thinfinity VirtualUI Version: 3 and above Introduction Thinfinity VirtualUI is a software solution designed to easily integrate Windows-based applications with web technologies, enabling remote access through web browsers. It extends the ...
    • Thinfinity VirtualUI: Testing with Development Server

      Product: Thinfinity VirtualUI Version: 3 and above Introduction Thinfinity VirtualUI is a software solution designed to simplify Web integration for Windows-based applications. This guide will walk you through the process of getting started with ...
    • How to Publish an Application in Thinfinity VirtualUI Server

      Product: Thinfinity VirtualUI Version: 3 and above Introduction This step-by-step tutorial will guide you through the process of virtualizing your applications and making them accessible from any web browser using Thinfinity VirtualUI. Get ready to ...