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 6785663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:09:16+00:00 2026-05-26T17:09:16+00:00

For some reason, when I’m creating a new property in Visual Basic .NET in

  • 0

For some reason, when I’m creating a new property in Visual Basic .NET in Visual Studio 2010, the rest of the Property (template?) doesn’t complete the basic framework of the property in the code editor. It is now treating a statement like:

Public Property Length() As Integer

Instead of completing the property as it used to (code follows), it simply goes to the next line:

Public Property Length() As Integer
    Get

    End Get
    Set(ByVal value As Integer)

    End Set
End Property

What happens now is that, if I type in the ‘End Property’ code, the name of the property will now be highlighted as an error since it doesn’t have a ‘Get’ or ‘Set’ portion.

However, when I THEN type the ‘Get’ on the line following the ‘Public Property Length() As Integer’, then the balance of the property is created in the code automatically.

I don’t know how this got changed, but would love to change it back.

Does anyone know if there’s a setting in VS2010 that addresses this, or if it’s something with the basic templates that visual studio uses for creating the basic code components?

The weird thing is that for everything else, from class declarations, structures, functions and subs, the IDE still creates the balance of the code structure correctly. The only area where it doesn’t is for Property declarations.

Thanks in advance for any assistance!

Kevin

  • 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-05-26T17:09:17+00:00Added an answer on May 26, 2026 at 5:09 pm

    VB.NET version 10 has auto-implemented properties.

    These are a bit of syntactic sugar that for simple properties (those that only get/set values of a field and nothing else) allow you to omit the Get/Set portions and the field (these do get generated by the compiler).

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

Sidebar

Related Questions

For some reason when I create a new namespace in Visual Studio 2008 its
For some reason Visual Studio 2008 doesn't always stop when an exception occurs to
For some reason when I attempt to make a request to an Ajax.net web
For some reason the ImageCache module doesn't work. Drupal just doesn't generate the ImageCache
For some reason, I have to move a lot of C# code from Visual
For some reason, .NET Reflector throws an exception when I try to reflect on
For some reason I can't seem to get the basic example to work, provided
For some reason my eclipse/android development environment has stopped creating the r.java files and
for some reason this one doesn't work anymore admin_club_path(club) but following does work admin_club_path(club.id)
For some reason my .NET (C#) SqlConnection uses my Windows session credentials instead of

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.