?
Solved

VB6 to VB.NET

Posted on 2006-11-03
3
Medium Priority
?
386 Views
Last Modified: 2010-04-23
When I defined a class in VB6 it automatically created the get & set methods for each field, does VB.net have the same functionality?  I can't seem to find it.
0
Comment
Question by:dgoncher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
Kinger247 earned 375 total points
ID: 17869197
Not automatically, but you create them like this  :

    Private m_thisProperty As Boolean

    Public Property thisProperty() As Boolean
        Get
            Return m_thisProperty
        End Get
        Set(ByVal value As Boolean)
            m_thisProperty = value
        End Set
    End Property
0
 

Author Comment

by:dgoncher
ID: 17869484
I see that when I add a property to the class diagram screen it creates the get set template, i was just hoping I wouldn't have to go through each field and add define a property manually.  Oh well.....carple tunnel time :)
0
 
LVL 17

Expert Comment

by:ZeonFlash
ID: 17869492
To supplement Kinger247's reply, as soon as you type "Public Property thisProperty() As Boolean" and press enter, the rest of the property methods (Get and Set) fill in automatically.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question