SBendBuckeye
Programmer
Hello all,
I created a custom EventArgs class by inheriting from System.EventArgs. I have several ReadOnly properties so I set them from the constructor like so:
The problem is that in my delegate, if I click e while debugging at run time, m_MyArg1 shows up in the list. Thanks in advance for any ideas and/or suggestions.
I created a custom EventArgs class by inheriting from System.EventArgs. I have several ReadOnly properties so I set them from the constructor like so:
Code:
Imports System.ComponentModel
Public Class MyCustomEventArgs
Inherits System.EventArgs
Public Sub New(ByVal myArg1 As String)
m_MyArg1 = myArg1
End Sub 'New
<EditorBrowsable(EditorBrowsableState.Never)> _
Private m_MyArg1 As String = Nothing
Public ReadOnly Property MyArg1 As String
Get
Return m_MyArg1
End Get
End Property 'MyArg1
End Class