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.

About Marissa Levy
 |
Sorry, no bio is available
This author has published 2 articles on DotNetSlackers. View other articles or the complete profile here.
|
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
|
|
Please login to rate or to leave a comment.