Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / July 2004

Tip: Looking for answers? Try searching our database.

Making non expandable properties that point to objects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marina - 24 May 2004 19:03 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.