Custom Component.... still no success :(

  • Thread starter Thread starter Evan Camilleri
  • Start date Start date
E

Evan Camilleri

I am still try to write the following in the InitializeComponent section of
the form when my component is dragged onto the tray:

myComponent.ParentControl = this;

where ParentControl is a property of my component. Why is it so difficult
to find good documentation on these issues? Apart from Mooseworks and Tim
Wilson's document at Microsoft there is NOTHING!!!

:(

Evan Camilleri
 
What you're trying to do is not actually relevent to the CF. You're trying
to get the designer to add code to your class, which is all done at the
desktop level. If I were to guess, you probably need to implement your own
CodeDomSerializer. There is plenty of documentation on how to do it out
there.
 
Yes but none for Compact Framework 2.0 with vs2005

The issue is that if I am not mistaken you have to write the designer in a
seperate assembly. So when In ovveriding Deserialize I issue:

CodeDomSerializer baseClassSerializer =
(CodeDomSerializer)manager.GetSerializer(typeof(MyComponent),
typeof(CodeDomSerializer));

My problem is that I do not have access to MyComponent like if I am in that
same assembly!

Evan
 
Back
Top