Re: Hosting Windows Forms Designers

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: schneider (0000_at_0000.SPAM)
Date: 08/13/04


Date: Fri, 13 Aug 2004 02:19:51 -0500

Hello,

If you just want to reload the settings you could serialize the control
types, and locations. then re-created them, Don't forget othe misc items
like Zorder/ChildIndex,Parents, ....

Or you must use the CodeDom, RootDesignerSerializer approach to generate
code/assembly.

I'm actually developing a runtime designer component (same functionality),
also currently working on methods to allow serialization of controls and
child/parent relations. Currently serialization is xml and allows loading
the settings, but would also like to support CodeDom use and multiple
languages. This one of the few items I'm still working on. My designer
component has been big challenge, ran into a lot of design issues for the
current designer systems in .NET.

Anyone know if CodeDom supports non .NET languages also?
I'm thinking it does since we now support so many languages in .NET.....

Thanks,

Schneider

"Stoitcho Goutsev (100) [C# MVP]" <100@100.com> wrote in message
news:%23KIvo88fEHA.2352@TK2MSFTNGP09.phx.gbl...
> The outcome of control visual design is class. In order to use that class
in
> my application it should reside in a class library (compiled) or I need to
> have the source code, which I can then compile allong with my other source
> files.
>
> It depends on what you are doing.
> If create code generator you need to save the cs, vb or what ever file
that
> user can compile. In this case you need to generate code for different
> languages because VS doesn't support mixing langiages in one project.
> If you create control generator you need to compile the form (control) so
I
> can use your dll. In this case language doesn't matter, but the code used
to
> compile the dll has to be CLS compliant. Not all languages support all
> posible features and types. For example VB.NET doesn't support operator
> overloads.
>
> So it's up to you.
> --
> HTH
> Stoitcho Goutsev (100) [C# MVP]
>
>
> "Wesley Yates" <cnl@newsgroup.nospam> wrote in message
> news:OPLCfV8fEHA.216@tk2msftngp13.phx.gbl...
> > Hi,
> >
> > We are developing an application in which the user can design their own
> GUI.
> > Basically we need to give the User similar functionality to that in the
> > Windows Forms designer in VS.NET.
> >
> > So far (following the examples given on Tim Dawson's website -
> > http://www.divil.co.uk/net/articles/designers/hosting.asp) we've got it
up
> > and running so the User can drag controls onto the design surface.
> >
> > My question is how can we 'save' the form the user has
created/designed? -
> > i.e. does the form need to be compliled before it can be displayed
outside
> > the designer?
> >
> > Many thanks,
> >
> > Wes
> >
> >
>
>



Relevant Pages

  • Re: VS2005 controls designer - file open
    ... if you don't want to use the same sources to compile both 2003 and 2005 versions of ... control and the app and it even looks in the designer of the app that once ... the control is recompiled the app designer reloads the control. ... the code and one in the xmta file? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Licx key not being saved
    ... can you open the project in the designer. ... Edit a property or delete the control and put it back on. ... Compile and run the project. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Custom control wont draw on form
    ... Take a look at some of the online tutorials. ... you must compile both a designer version and a runtime version of ... > So I was forced to make a custom control that would extend the button. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Should I Subclass TextBox ?
    ... Any kind of project that will compile to a DLL will do. ... you write your control class, ... TestProperty or any other TextBox properties in the designer. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: PDA application development
    ... Chris Tacke, Embedded MVP ... To get it to even work at all - not considering designer support ... write a COM interop wrapper around the control. ... "Michael Salamone" wrote: ...
    (microsoft.public.pocketpc.developer)