Experts, I am trying to learn about events. I have a class that I am using and I have run into something that i cant figure out. I cannot get the onConnected sub to show up when i instantiate the class. I also want the e.eventargs to have the value of the IPAddress. Can you please help me out here?
Public Class Class2
Public Delegate Sub EventHandler(ByVal sender As Object, ByVal e As EventArgs)
Public Event Connected As EventHandler
Private intIndex As Integer
Private strIP As String
Public Property index As Integer
Set(value As Integer)
intIndex = value
Public Property ip As String
Set(value As String)
strIP = value
Protected Overridable Sub onConnect(e As ipPropertyChangedEventArgs)
RaiseEvent Connected(Me, e)
Public Class ipPropertyChangedEventArgs
Private ReadOnly _proposedValue As String
Public ReadOnly Property ProposedValue() As String
Public Sub New(ByVal proposedValue As String)
Me._proposedValue = proposedValue
ASKER CERTIFIED SOLUTION
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for the input you were right about defining the events. I figured out how to wire it all together.