Hi,
Thanks for your reply.
I was more concerned about a dynamic UI. Foe e.g., if I have an xml file
that contains (among other things) data and the control through which I
should display data, I should be able to do it in Winforms. (In case of an
ASP .NEt application I can write xslt for a control matching the control
name!). I found that I can do reasonably well by creating a schema for my
xml, genrating a typed dataset to the schema, filling the dataset with my
xml data and attaching it to a datagrid with (dynamically) bound controls.
However I should say, in this process, I now have hit upon another issue.
I am trying to get a typed dataset from an xsd. However, the VS 2003
Enterprise Architect IDE says that "The same table (Table name) cannot be
the child table in two nested relations". I googled this and found that the
XML viewer sometimes throws up this message. But, in my case, I get this
message when I am trying to get a typed dataset from my xsd. I do have a
multpile reference to a child element, but I do not see how it violates any
of the W3C norms. Could you please help me out?
TIA
Krishnan
[quoted text, click to view] ""Jeffrey Tan[MSFT]"" <v-jetan@online.microsoft.com> wrote in message
news:oThORQxyFHA.2924@TK2MSFTNGXA01.phx.gbl...
> Hi Krishnan,
>
> Thanks for your post.
>
> Based on my understanding, you want to dynamically serialize and
> deserialize the winform controls from Xml file.
>
> Microsoft has released a KB of a sample project, which demonstrate the
> VS.net IDE design-time support. In this sample, we can serialize the
> designer in 3 formats: VB.net files, C# files and Xml files. It also
> implemented the function of deserialize the designer from Xml files. So
> this function may meet your need.
>
> Normally, internally, it just parse the xml file and use Reflection to
> create each controls and initialize each properties. Link listed below:
> "INFO: Code Sample That Demonstrates How to Create a Custom Form Designer
> by Using Visual C# .NET"
>
http://support.microsoft.com/default.aspx?scid=kb;en-us;813808 >
> Hope this helps
>
> Best regards,
> Jeffrey Tan
> Microsoft Online Partner Support
> Get Secure! -
www.microsoft.com/security > This posting is provided "as is" with no warranties and confers no rights.
>