Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / August 2004

Tip: Looking for answers? Try searching our database.

Hosting Windows Forms Designers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wesley Yates - 11 Aug 2004 18:11 GMT
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
Stoitcho Goutsev \(100\) [C# MVP] - 11 Aug 2004 19:17 GMT
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.
Signature

HTH
Stoitcho Goutsev (100) [C# MVP]

> Hi,
>
[quoted text clipped - 13 lines]
>
> Wes
schneider - 13 Aug 2004 08:19 GMT
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

> 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
[quoted text clipped - 30 lines]
> >
> > Wes
J?rgen Weiss - 16 Aug 2004 12:47 GMT
There is a nice code sample from Microsoft that shows how to save the
controls of a designer as an XML/C#/VB file. See
http://support.microsoft.com/default.aspx?scid=kb;EN-US;813808

> Hi,
>
[quoted text clipped - 13 lines]
>
> Wes

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.