G
Guest
A quick rant and a question.
Why does the designer in VS2003 delete code about custom components that it
can't load? I've had large sections of forms disappear in the blink of an
eye just because I've introduced a small error in a widely used custom
control that makes it throw an exception at design time.
IMHO the code should be sacrosanct -- if the designer can't create some sub
control then it should just throw up a blank or a red X or something (it
would be nice if it would be smart enough to figure out where the control is
supposed to be and just mark that area) and make note of the exception. Is
there some way to stop the designer from deleteing code (aside from marking
the code read only before entering the designer, which is what I've started
doing)? Is this going to change any time soon?
Thanks,
Eric
PS This is in Visual C#, from some things I have read it behaves
differently in Visual Basic but I haven't tried that.
Why does the designer in VS2003 delete code about custom components that it
can't load? I've had large sections of forms disappear in the blink of an
eye just because I've introduced a small error in a widely used custom
control that makes it throw an exception at design time.
IMHO the code should be sacrosanct -- if the designer can't create some sub
control then it should just throw up a blank or a red X or something (it
would be nice if it would be smart enough to figure out where the control is
supposed to be and just mark that area) and make note of the exception. Is
there some way to stop the designer from deleteing code (aside from marking
the code read only before entering the designer, which is what I've started
doing)? Is this going to change any time soon?
Thanks,
Eric
PS This is in Visual C#, from some things I have read it behaves
differently in Visual Basic but I haven't tried that.