Problem with host designer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • alexcsharp2@gmail.com

    Problem with host designer

    Hello,

    I am working on the example located here : :http://
    support.microso ft.com/?id=813808

    Scenario : I add a button. Its name is button1 and I run. It works
    well. And then I add a second button to my form. And I run it again.

    My problem is the following :

    When I am running it with the dot net 1.1 : I can see the two buttons.

    But with the dot net 2.0 I se nothing. The serializer serializes only
    the button added and not all the components.

    What is the reason? Why does it work with 1.1 and not with 2.0?

    I investigate and I found the line which is bugging. It is in the file
    SampleDesignerL oader.cs

    The line is :

    CodeTypeDeclara tion td = cds.Serialize(m anager, root) as
    CodeTypeDeclara tion;

    Is there a difference between the function serialize in .net 1.1 and
    2.0?

    I need to work with dot net 2.0. It is a requirement. So I need really
    your help to know how can I fix my problem.

    Thank you very much
Working...