This is a Murphys law... Just after hitting the send button for this
post, I discover this.Designmode...
[quoted text, click to view] Franck Diastein wrote:
> Hi,
>
> I'm making some User Controls, and one custom control depends on another
> custom control...
>
> So , I have something as this in UserControl1
>
> text1.text = UserControl2.MyFunction("myparameter")...
>
> If I launch the app, it works fine, but if I go to the form where both
> User Controls are used, I can't modify exiting instances of UserControl2
> and I'm unable to add new instances of UserControl2...
>
> I have this message error: Object reference not set to an instance of an
> object
>
> I understand the error and I try to fix it trying to ignore the
> 'offensive' line code putting it into a #if RELEASE / #endif statement,
> but that doesn't work...
>
> Any idea to ignore that line of code in design mode ?
>