Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Using the DesignSurface to create html forms
 

Using the DesignSurface to create html forms

Hi All,

In .NET v 2 windows forms application, i have used the System.ComponentModel.Design.DesignSurface to create a windows forms designer, but now i would like to try using the same surface to create HTML forms. Most of the articles i have seen for using the designer host say that it can be used for hosting ASP controls, but, i cannot seem to get it to work. Most of these articles were written for .NET 1 using IDesignerHost .

Whenever i have the designer surface use a root component of type System.Web.UI.Page ( or any other web ui hosting control ), i get an exception because the design surface internally is trying to load class's from the 'Microsoft.VisualStudio.Web.dll'. Obvisouly i cannot ship dll's from Visual Studio with my code, but even as a test, if i add a reference to this dll, the designer surface still doesnt work. It works perfectly with windows forms controls.

Is it possible to use the System.ComponentModel.Design.DesignSurface to host html and asp.net controls? I realize this is a windows forms forum, but this application is written in windows forms.

Any help would be greatly appreciated.

Dave
Dave_123  Monday, September 18, 2006 4:04 PM

I have the same problem :(

Unfortunately the fullimplementationof theWebformsRootDesigner is only apart of visual studio and is not accessible the rest of us. We do however have access to the abstract WebformsRootDesigner. Unfortuanaly the GetView function returns null. :( So any one wanting to use this rootDesigner is still stuck with writing their own getView.

We have decided to translate windowsform user controls to aspx syntax because trying to make WebFormsRootDesinger fully functional was going to betoo daunting of a task.

I believe the team doing SharpDevelop is in the process of making WebFormsRootDesigner fully functional but i don't know where they are at at this point. But it's going to be something I’m waiting for if they ever do get it done. ;)

carlsonad  Thursday, September 21, 2006 3:32 PM
I also have the same problem. Any updates to this issue???
sohaibi  Friday, February 23, 2007 11:47 AM

I have the same problem.

There is any way to solve this ?

Process Management  Tuesday, May 06, 2008 10:18 AM
I also have the same problem. Any updates to this issue???
mingnianwo18  Tuesday, September 22, 2009 6:16 AM

You can use google to search for other answers

Custom Search

More Threads

• Custom dialog box
• designer reloads
• hosted DesignSurface - editing Controls (e.g. ComboBox) => Crash
• single event to trigger multiple dynamically created controls
• C# 2005 Express: How til select a User Control
• [solved] Display a designer form in an external application without freezing external application events
• in-place editor for data grid?
• Inherited forms and cannot add extra controls
• Custom Component Designer - Visual Studio Design time environment
• Where are DialogKeys processed in Designer?