HighTechTalks DotNet Forums  

incorrect custom control code serialization

Dotnet Framework (WinForms DesignTime) microsoft.public.dotnet.framework.windowsforms.designtime


Discuss incorrect custom control code serialization in the Dotnet Framework (WinForms DesignTime) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
fleimeris
 
Posts: n/a

Default incorrect custom control code serialization - 12-08-2004 , 03:24 PM






i'm creating custom list control. it has collection of items and each item
consists of several sub items. item has two constructors, one of which takes
list (parent) as an argument. this constructor is used for code
serialization (through type converter that has overriden ConvertTo method).
however designer creates this code:

Igneous.Controls.IgItem igItem1 = new Igneous.Controls.IgItem(this.igList1);
Igneous.Controls.IgSubItem igSubItem1 = new Igneous.Controls.IgSubItem();
this.igList1 = new Igneous.Controls.IgList();

igItem1 is created too early and gets "null" parent. how can i force igList1
get created before igItem1 (code dom ? wouldn't know where to start ?



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.