How to Migrate a WinForms application to the Web using Visual WebGui
Eyal.Albert posted on December 23, 2008 :: 4062 Views :: User Rating:

Visual WebGui introduces a new platform to develop web applications and migrating desktop applications to the web. In this “How To” we are going to learn how to take an existing WinForms application and migrate it to the the web.
First thing we need is a Winforms application. I will use a calculator application written in VB.Net.
Let’s open the project in Visual Studio and run the application to see how it works as a Winforms application.

Add a new Visual WebGui application by right click on the solution and selecting Add->New Project…

Select a new Visual WebGui application.

Delete from the new VWG application the Form1.vb file and drag the Form1.VB from the WinForm project to the VWG project.

Next we will replace the the old references to System.Windows.Forms with the equivalent reference in VWG Gizmox.WebGUI.Forms. Press Ctrl\Shift\H combo to display the Find and Replace form and enter the text that we want to replace and press the replace all. In the end of this process all the references should refer to VWG forms.

Now lets set the VWG project as the starting project by right clicking the project and selecting Set as StartUp Project

Next we will set the starting form of the application. Right click on the project and and open the project property page. In the Web section set the start up action to specific page Form1.wgx.

Now lets run the application and see or WinForms application run as a Web application..

To summarize:
We have seen how to migrate an existing WinForms application to a web application using Visual WebGui.
You can read the original how to here
-- Eyal Albert @ Eyal.Albert (at) Gizmox.com
I try to convert windows application but see errors about
UseVisualStyleBackColor
AutoScaleDimensions
AutoScaleMode
FormClosingEventArgs
FormClosing
what can i do ?
Posted by x893 on Monday, February 02, 2009 4:44 PM
i try to convert .net 3.5 window application but it shows error that "Error 1 The type or namespace name 'Gizmox' could not be found (are you missing a using directive or an assembly reference?)"
even Reference folder contain all the three dll
Gizmox.WebGUI.Common
Gizmox.WebGUI.Forms
Gizmox.WebGUI.Server
What can do to remove this above error??
Posted by Mukesh on Wednesday, March 18, 2009 2:06 AM
Hi Mukesh,
Can you send me you sample application so i could look it over?
Eyal.albert (At)Gizmox.com
Thanks
Posted by Eyal.Albert on Wednesday, March 18, 2009 2:30 AM
I try to convert windows application(VS 2005, .NET framework 2.0) but see errors about
KeyPreview is not a member of the Forms
AutoScaleMode is not a member of the Forms
ControlBox is not a member of the Forms
Active is not a member of Gizmox.WebGUI.Forms.ToolTip
UseMnemonic is not a member of Gizmox.WebGUI.Forms.Label
MultiColumns is not a member of Gizmox.WebGUI.Forms.ListBox
IntegraHeight is not a member of Gizmox.WebGUI.Forms.ListBox
HideSelection is not a member of Gizmox.WebGUI.Forms.TextBox
CausesValidation is not a member of Gizmox.WebGUI.Forms.TextBox
what can i do ?
Posted by sanjayzouta on Wednesday, April 08, 2009 3:27 PM
Hi,
This properties are not suported by our system at this time.
The solution that i can offer you know is to mark them as comment and run the application.
If you want i can give youo more suuport by Email and see how this affects you application and see if i can give you further support.
My email is Eyal.albert (AT) Gizmox.Com
Posted by Eyal.Albert on Sunday, April 12, 2009 2:03 AM
i convert the window application form to visual webGUI as describe in above tutorial, Now problem is that control shows in design time but not show at run time. i have downloaded build version 6.4.0.
Is there any kind of setting that we have to done.
what we have to do to run this form in VWG?
Posted by Mukesh on Tuesday, October 13, 2009 7:23 AM
I tried to convert VB.net 2008 application to WebGUI 6.3.13, but getting many errors mentioned below. Is it that these controls are not supported right now. If so can you provide list of things not supported from standard microsoft controls?. We are not using any third part controls in this vb application.
1. Error 28 Type 'TreeView' is not defined.
2. Error 65 Value of type 'System.Windows.Forms.Cursor' cannot be converted to 'Gizmox.WebGUI.Forms.Cursor'.
3. Error 76 Type 'Gizmox.WebGui.Forms.ToolStripButton' is not defined.
4. Error 80 Type 'Gizmox.WebGui.Forms.ToolStripButton' is not defined.
many many more...
Posted by mokashivb on Thursday, December 10, 2009 10:25 AM
I tried to convert the VB 6 application to .net application i found some challenges over it as mentioning below, can you please tell me how to address all these challenges if possible.
1. Gizmox forms are missing some members/Control / UserControl (missing method ) / Events
Gizmox.WebGUI.Forms
o StatusStrip
o ParentForm
o KeyPreview
o ControlBox
o HelpButton
o Conversion
o Information.Err
o MsgBoxStyle
o Interaction.Beep()
o AutoScaleMode
o CreateGraphics
Form-Object Missing controls
o ToolStrip
o ToolStripMenuItem
o ToolStripStatusLabel
o ToolStripSeparator
o ToolStripButton
o DirListBox
o DriveListBox
o FileListBox
o PrintPreviewDialog
Gizmox.WebGUI.Forms.UserControl :
o CreateGraphics
o Refresh
Form-Events
o 1.DrawItemEventArgs
o 2.DrawItemEventHandler
2. For control level. Below mention control are not mapped with appropriate members that are highly used in Window application
• ToolTip : Active
• TextBox : HideSelection , CausesValidation, ImeMode
• ListBox : MultiColumns , IntegraHeigh
• Lable : UseMnemonic
• TabControl : SizeMode, TabSizeMode, GetTabRect, Selecting, DrawMode, DrawItem, Refresh
• CheckBox : Appearance, IntegralHeight
• DataGrid : Refresh, AccessibleRole
• PictureBox : WaitOnLoad
• RadioButton : Appearance
• ImageList : TransparentColor
• TabControlCancelEventArgs : TabPageIndex
• MaskedTextBox : AllowPromptAsInput
3. I am facing a big problem while trying to use the ActiveX control in vb6 or .net application, could you please tell me the way where as GIZMOX framework provide me leverage to use the same ActiveX control into migrated application.
Posted by im_naveensoni on Tuesday, March 16, 2010 9:10 AM