Hi,
Let's say I have a property on a usercontrol that is of type Label. In the
dropdown I get a list of all labels on the form, and can pick one - this is
great.
However, as soon as I pick one, there is a '+' that shows up, which can be
expanded, and various properties of this label may now be modified. This is
undesirable. I would prefer that all that would happen, is that this
property of the user control be set - but all properties for the label in
question, would have to be set through the label itself and would not be
available here.
Is there an attribute or something else that can create this type of
behavior?
Thanks.
Bob - 29 May 2004 18:01 GMT
Well in theory you could use the Immutable attribute, but (I may be wrong)
it looks like that feature is broken.
Bob
> Hi,
>
[quoted text clipped - 13 lines]
>
> Thanks.
Marina - 01 Jun 2004 21:02 GMT
As you say, that looks like the ImmutableObject attribute is the right
attribute from the MSDN help, but as you mention it does not appear to be
working. If it was working, it seems this would be the way to go.
Thanks
> Well in theory you could use the Immutable attribute, but (I may be wrong)
> it looks like that feature is broken.
[quoted text clipped - 21 lines]
> >
> > Thanks.
schneider - 27 Jul 2004 05:55 GMT
Make the property as Friend / Internal.
That should do the trick...
Schneider
> As you say, that looks like the ImmutableObject attribute is the right
> attribute from the MSDN help, but as you mention it does not appear to be
[quoted text clipped - 30 lines]
> > >
> > > Thanks.