all groups > dotnet windows forms designtime > may 2004 >
You're in the

dotnet windows forms designtime

group:

Making non expandable properties that point to objects


Making non expandable properties that point to objects Marina
5/24/2004 2:03:12 PM
dotnet windows forms designtime:
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.

Re: Making non expandable properties that point to objects Bob
5/29/2004 1:01:09 PM
Well in theory you could use the Immutable attribute, but (I may be wrong)
it looks like that feature is broken.

Bob

[quoted text, click to view]
Re: Making non expandable properties that point to objects Marina
6/1/2004 4:02:30 PM
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

[quoted text, click to view]

Re: Making non expandable properties that point to objects schneider
7/26/2004 11:55:11 PM
Make the property as Friend / Internal.

That should do the trick...

Schneider

[quoted text, click to view]

AddThis Social Bookmark Button