We help IT Professionals succeed at work.
Get Started

how get the custom properties of a custom class in vb.net

Last Modified: 2015-04-24
I made this class
<Serializable()> _
Public Class mystep3
    Inherits NStep3Connector
    Implements ISerializable

#Region "Serialization"
    Public Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)
        e_MiID = info.GetString("MiID")
    End Sub

    Public Sub GetObjectData(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext) Implements System.Runtime.Serialization.ISerializable.GetObjectData
        info.AddValue("MiID", e_MiID)
    End Sub
#End Region

#Region " properties ..."
    Public e_MiID As String = Nothing
    <Browsable(True)> _
    Public Property MiID() As String
            Return e_MiID
        End Get
        Set(ByVal value As String)
            e_MiID = value
        End Set
    End Property
#End Region

#Region "Initializers"
    Public Sub New()
        MyBase.StyleSheetName = NDR.NameConnectorsStyleSheet
        MyBase.StartPoint = New NPointF(250, 220)
        MyBase.EndPoint = New NPointF(330, 280)
        MyBase.FirstVertical = True
    End Sub
#End Region
End Class

Open in new window

It works ok, but I have this issue:

Im trying to access the custom property "MiID" by code but I cannot find it, if try to listen the properties I only find it following this steps:
step1: example0.jpg

Is ther a way to assigned it to a variable ???

Do Im doing something wrong??????
Watch Question
Solutions Consultant
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE