B
Bram Vandendriesschen
Hi,
I already found the solution to my problem, but I would
like to discuss it with you.
I developed a component with a property called Name (of
type String). Everytime I dropped the component on a form
the IDE complained with the well-known (and sometimes
nasty) "object reference not set to an instance ..."
message. The designer always set Name to null (which is
normal when you don't use DefaultValue). When I manually
delete this line, the problem stopped. Seems like this
statement sets some other (hidden) Name property to null
(previously set by the designer) instead of my own
property. I renamed the property and now everything is
fine (don't want to remove the line everytime).
Anybody a clue ?
And of course, sorry if this question has already asked.
Bram.
I already found the solution to my problem, but I would
like to discuss it with you.
I developed a component with a property called Name (of
type String). Everytime I dropped the component on a form
the IDE complained with the well-known (and sometimes
nasty) "object reference not set to an instance ..."
message. The designer always set Name to null (which is
normal when you don't use DefaultValue). When I manually
delete this line, the problem stopped. Seems like this
statement sets some other (hidden) Name property to null
(previously set by the designer) instead of my own
property. I renamed the property and now everything is
fine (don't want to remove the line everytime).
Anybody a clue ?
And of course, sorry if this question has already asked.
Bram.