Do you have any code in the OnParentChanged event override?
--
Alex Yakhnin, NET CF MVP
IntelliProg, Inc.
http://www.intelliprog.com
"éric" <(E-Mail Removed)> wrote in message
news:efWJ$(E-Mail Removed)...
> I found out what it was but I can't explain it
> this line is what messes it up... why? (conditional statement prevents the
> StackOverflowException error)
> #if !NETCFDESIGNTIME
> lblDLStatus.Parent = pnllblDLStatus;
> #endif
> I put the conditions to avoid the problem in design time... but why does
> this cause an error when this line is in the constructor?
>
> Now my problem is 2 fold... without that line the design time does not
look
> exactly as it should
> Second and most important I get the following error when I run the app
with
> my control:
> --------------------------------
> TypeLoadException
> Could not load type
> System.Windows.Froms.Panel from
> assembly System.Windows.Forms,
> Version = 1.0.5000.0, Culture = neutral
> PublickKeyToken=B77A5C561934E089
> --------------------------------
> This Error comes up before the first line of code is executed?
> What am I missing?
> Regards,
> éric
>
>