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
[quoted text, click to view] "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
> >
> >
>
>