List Property in Designer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ferdinand Zaubzer

    List Property in Designer

    Hello!

    I have the following problem:

    I have a base Form with some general functionality and I want to create
    several derived Forms from it.
    The base Form contains a List - in particular a List of BindingSources -
    and in the derived Forms I want to add some BindingSources (that are
    components of the derived Form) to this List defined in the Base form.

    Is there any possibility to achieve this with the designer?

    In fact the list shows up in the property list of the designer of the
    derived Form, and I can add Items, but obviously no code gets serialized
    for the Items added via the Designer.

    Thanks in advance
    Ferdinand
  • Ferdinand Zaubzer

    #2
    Re: List Property in Designer

    I was too quick with posting that question

    The answer is:
    Setting the DesignerSeriali zationVisibilit y Attribute to
    DesignerSeriali zationVisibilit y.Content for the List Property of the
    base Form solved the problem.


    Ferdinand Zaubzer wrote:
    Hello!
    >
    I have the following problem:
    >
    I have a base Form with some general functionality and I want to create
    several derived Forms from it.
    The base Form contains a List - in particular a List of BindingSources -
    and in the derived Forms I want to add some BindingSources (that are
    components of the derived Form) to this List defined in the Base form.
    >
    Is there any possibility to achieve this with the designer?
    >
    In fact the list shows up in the property list of the designer of the
    derived Form, and I can add Items, but obviously no code gets serialized
    for the Items added via the Designer.
    >
    Thanks in advance
    Ferdinand

    Comment

    Working...