Published: 09 Jan 2009
By: Marissa Levy

Marissa show how you can easily embed winforms application in your web applications.

In the next 2 minutes, let me demonstrate how we can build a WinForms application and run it in our browser.

The first thing we need to do is install Visual WebGui and get all the functionality that is demonstrated in this post. You should register on the Visual WebGui site (http://www.visualwebgui.com) and then download and install the Visual WebGui development framework.

After we install the framework we are ready to start a new project.

Let's open a new Visual WebGui project:

The new project will include all the required files as displayed in our project's Solution Explorer.

As you can see, we are going to write a web application with WinForms inside a Web Application.

We'll open the form designer by double clicking on Form1.cs in the Solution Explorer

The Visual WebGui designer, which appears below, has the same look and feel as the WinForms designer.

We can resize our form to maximize our work area. We can do that by changing the Form Size property or resizing the form using the mouse, just like normal WinForms behavior.

After our form is resized, we can add a control or two by using "drag and drop" to put toolbox controls on our form.

We can look at the control properties and change the label's text.

Now we'll add a Button control and change its properties as well.

After we're done designing our (very control rich) form, we'll go and write some code by double clicking the "Write Hello World" button.

Now we are ready to write our code, let's set the label's text to "Hello World".

After we completed our WinForms designing and written some code-behind we can finally run our sample.

Now we'll click on the "Write Hello World" button and see if our code works.

Woo! We've clicked the WinForms button inside our browser and the WinForms label has changed without a single PostBack!

Does this work in FireFox?

Well, Visual WebGui supports the major browsers as you can see in the following image.

<<  Previous Article Continue reading and see our next or previous articles Next Article >>

About Marissa Levy

Sorry, no bio is available

This author has published 2 articles on DotNetSlackers. View other articles or the complete profile here.

Other articles in this category


jQuery Mobile ListView
In this article, we're going to look at what JQuery Mobile uses to represent lists, and how capable ...
JQuery Mobile Widgets Overview
An overview of widgets in jQuery Mobile.
jQuery Mobile Pages
Brian Mains explains how to create pages with the jQuery Mobile framework.
Code First Approach using Entity Framework 4.1, Inversion of Control, Unity Framework, Repository and Unit of Work Patterns, and MVC3 Razor View
A detailed introduction about the code first approach using Entity Framework 4.1, Inversion of Contr...
Exception Handling and .Net (A practical approach)
Error Handling has always been crucial for an application in a number of ways. It may affect the exe...

You might also be interested in the following related blog posts


ASP.NET 4 Web Server Here Shell Extension read more
HealthVault 0908 SDK Highlights read more
Content Rewriting through Cisco WebVPN read more
Announcing the WebsiteSpark Program read more
Gaia Ajax 3.6 Alpha released: Ajax GridView and Adaptive Rendering ++ read more
Announcing the Microsoft AJAX CDN read more
Auto-Start ASP.NET Applications (VS 2010 and .NET 4.0 Series) read more
Quick Reference Guide for Telerik Support read more
Intersoft Solutions Announces WebUI Studio 2009 Service Pack 1 read more
Clean Web.Config Files (VS 2010 and .NET 4.0 Series) read more
Top
 
 
 

Please login to rate or to leave a comment.

Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.