I guess I'd need some code snippets to figure out the problem. Also, where
did "myImageList" come from?
All properties are serialized by default to code and so, you wouldn't need
the "DesignerSerializationVisibility" attribute at all.
-vJ
Let's be more clear:
I've made:
public System.Windows.Forms.ImageList Buttons_Image_list
{ get {return buttonsImageList;}
set {buttonsImageList = value;} }
results:
I've modify the property Buttons_Image_list property of my control (in
designer, used in the container) to an image list defined there; nothing
hapened or on the design or runtime.
If I put above the property definition:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
to change the default serialization from Visible to content, it initially
displays the correct image list at design and runtime, but at the second
build (run) , I receive an error:
"There is already a component named 'myImageList'. Components must have
unique names, and names must be case-insensitive. A name also cannot
conflict with the name of any component in an inherited class."
Any ideas????
--
Horatiu Ripa
Software Development Manager
Business Logic Systems LTD
21 Victor Babes str., 1st floor, 3400 Cluj-Napoca, Romania
Phone/Fax: +40 264 590703
Web:
www.businesslogic.co.uk
This email (email message and any attachments) is strictly confidential,
possibly privileged and is intended solely for the person or organization to
whom it is addressed. If you are not the intended recipient, you must not
copy, distribute or take any action in reliance on it. If you have received
this email in error, please inform the sender immediately before deleting
it. Business Logic Systems Ltd accepts no responsibility for any advice,
opinion, conclusion or other information contained in this email or arising
from its disclosure.