|
-
Feb 13th, 2008, 08:23 AM
#1
Thread Starter
New Member
[02/03] Problems with user control
I created a usercontrol with a five dropdown lists that represent a hierarhical tree. The control has a property from which i get a string that represents current selection. The control is NOT added dynamically, neither are controls on it.
The error I get is "Object reference not set to an instance of an object. " when trying to access the property of this control.
If I add the New keyword to
Public WithEvents hier As hierarhija
the error occurs few lines later, when its trying to read .selectedvalue property of dropdown list.
Even stranger is that I use this control about 6 times in a solution, and in one case it works fine using same calls and declarations and i cant find any difference between these forms that would seem important.
Can anybody help me with this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|