|
-
Nov 20th, 2002, 01:49 AM
#1
Thread Starter
New Member
Collection Property Problem
I have a custom user control which displays a collection of 'Options' to the user called 'ADLOptions'. The ADLOption class is a simple class with a few variables.
In the designer I use a custom property editer to edit this Property (i.e. add/remove options from the collection), which all works fine.
However, when I run my test application, my custom user control reverts to it's initial state (i.e. Options I added to the collection at design time have runaway).
In Other words changes I make at design time don't persist into runtime .
I have also noticed that in the Designer Generated code in the test application, there is NO code for this property?
I have included the code for my property in the custom user control below, does anyone have any ideas on why it's not working?
Thanks,
Oppy
<Editor(GetType(StrikeOutListPropertyEditor), GetType(UITypeEditor)), Category("Behavior"), _
Localizable(True), DesignerSerializationVisibility(DesignerSerializationVisibility.Content), ListBindable(True)> _
Public ReadOnly Property Options() As ADLOptionCollection
Get
Return theOptions
End Get
End Property
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|