CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Location
    Chicago, IL
    Posts
    27

    read only property

    Does anybody know how to write a read only property. I don't need code, just a verbal description. thank you for any help.

    Archie Kantzavelos

  2. #2
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: read only property

    Write all properties variable as Private.
    Use Property Let and Property Get to set your property.
    Don't write Property Let for read-only property.

    Andy Tower

  3. #3
    Join Date
    Apr 2000
    Posts
    737

    Re: read only property

    if you are talking about changing a value of a read-only property for a control, you CAN'T.

    HTH


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured