Solved

VB6 to VB.NET

Posted on 2006-11-03
3
379 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
3 Comments
 
LVL 10

Accepted Solution

by:
Kinger247 earned 125 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now