?
Solved

VB6 to VB.NET

Posted on 2006-11-03
3
Medium Priority
?
396 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 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

830 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