Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7977445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:12:05+00:00 2026-06-04T09:12:05+00:00

I have been wondering for a while what the difference is between the following

  • 0

I have been wondering for a while what the difference is between the following two:

Public Property ProgressMaxValue() As Integer
    Get
        Return maxval
    End Get
    Set(ByVal Value As Integer)
        maxval = Value
    End Set
End Property

vs

Dim progressMaxValue as Integer
ProgressMaxValue = 1184

The do the same exact thing right? I have examined other people’s code, and am seeing more and more of the first example. Just trying to figure out the point, difference, and why people are using it lol. Maybe I missed the memo?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T09:12:06+00:00Added an answer on June 4, 2026 at 9:12 am

    just declaring it as normal…

    There is no “normal” in this case. The two statements are actually completely different things all the way down to the IL, i.e. a property and a field. When you use the getter or setter of a property via reading or assignment, you are actually invoking a method.

    In your particular example, the getter/setter methods of the property read and update a field, but since they are methods, they could do anything that you wanted them to.

    As to why, this has been discussed extensively, such as here and here (c# articles but interchangeable with VB.Net in this case). A broad (but good) justification for using properties is that it hides the internals of your class from external callers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lately i have been wondering if there is a performance difference between repeating the
Something I have been wondering about properties for a while. When you are using
Alright, so I have been wondering how to do this for a while. Basically,
I have been wondering about this for a while. What if Magento has written
I have been wondering for a while, after asking different people and without any
I have been wondering about the reload() function in python, which seems like it
I have been wondering about the performance of regular expression implementations lately, and have
I've been hacking around with Ruby a little and I have been wondering if
Hello android designers, 1-I have been wondering. Is it a good design approach to
I ran into this RegExp /[[0]]/ in JavaScript, and have been wondering what it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.