all groups > dotnet windows forms designtime > march 2005 >
You're in the

dotnet windows forms designtime

group:

#if RELEASE



#if RELEASE Franck Diastein
3/23/2005 4:38:15 PM
dotnet windows forms designtime: 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 ?

Re: #if RELEASE Franck Diastein
3/23/2005 4:43:25 PM
This is a Murphys law... Just after hitting the send button for this
post, I discover this.Designmode...



[quoted text, click to view]
AddThis Social Bookmark Button