T
Tom P.
I'm making a dropdown button (cause I can't get the one on the
toolstrip to work correctly for me).
I'm setting the AutoSize = true; and I'd like it to be ReadOnly. I can
do all that, using "new" to hide the old property and access the old
property using base.AutoSize from inside the subclass... etc.
But what I can't get is the IDE to stop wanting to set the AutoSize
property. This of course leads to a compiler error because the
property is readonly. So I comment those lines out of the designer but
if I touch the control (move it's location, set or delete the text,
anything really) the designer tries to set those values again and I
have to go and comment them out... again.
I know there is a Directive (those statements in brackets that makes
the IDE stop trying to set a property but I can't find it. There's
even one to remove it from the Property list, but I can't find that
either.
Any help would be great, especially if you could tell me where to find
all those cute little directives... that'd be awesome.
Tom P.
toolstrip to work correctly for me).
I'm setting the AutoSize = true; and I'd like it to be ReadOnly. I can
do all that, using "new" to hide the old property and access the old
property using base.AutoSize from inside the subclass... etc.
But what I can't get is the IDE to stop wanting to set the AutoSize
property. This of course leads to a compiler error because the
property is readonly. So I comment those lines out of the designer but
if I touch the control (move it's location, set or delete the text,
anything really) the designer tries to set those values again and I
have to go and comment them out... again.
I know there is a Directive (those statements in brackets that makes
the IDE stop trying to set a property but I can't find it. There's
even one to remove it from the Property list, but I can't find that
either.
Any help would be great, especially if you could tell me where to find
all those cute little directives... that'd be awesome.
Tom P.