Hi all,
I've created a custom component which can be dropped from the toolbox to any form. It interacts with any form that has a treelist on it. After you drop it on to the form, you must set a property of the component which is treelist it applies to. At the moment if you forget to set the property, the app builds, but as soon as you attempt to use the component, you get a nullreferenceexception.
What I'd like to know is whether it's possible to force a compiler/build error if that property has not been set at compile time i.e., if one of our other developers uses the component on his form but forgets to set the property in design mode, then I'd like it to not build and show an error message in the error list.
This is VB.NET in VS2005 on v2.0.
Any thoughts
Thanks.
Visual Basic4
|