This is where using Me.DesignMode is useful, or validating your properites
before you actually use them. The Designer (VSIDE) only calls the 0
argument constructor (unless there is some really fancy attribute I don't
know if). However, like I said, you can just validate your variables, and
when a property is set, call a method to do whatever it is your user control
needs to initialize from the same constructor.
-CJ
"TryingLikeHeck" <tr************@aol.com> wrote in message
news:20***************************@mb-m07.aol.com...
I have a UserControl that must have 2 fields initialized before some of
the prorperties are used. So I added a new New sub with arguments.
If I leave the old New in there the control could be used without
initializing these fields so I removed it.
Now if I try to use it the designer gets upset because there is no New()
Is it posible to use only a New with arguments and still use the control
in the Designer??
Thanks in advance