A
AMerrell
Hello,
There is a C# funciton I'm trying to translate that clones some event handlers.
public virtual object Clone()
{
...... Instance of a Custom Collection .......
myCol.ItemAdded = this.ItemAdded;
myCol.ItemRemoved = this.ItemRemoved;
return myCol;
}
In VB.NET I have this.
Public Overridable Function Clone() As Object Implements ICloneable.Clone
...... Instance of a Custom Collection .......
myCol.ItemAdded = me.ItemAdded
myCol.ItemRemoved = me.ItemRemoved
return myCol
End Function
The system tells me I need to use a 'RaiseEvent' statement to raise an event.
How do I go about doing the same thing in VB.NET that was done in C#?
Thank You
AM
There is a C# funciton I'm trying to translate that clones some event handlers.
public virtual object Clone()
{
...... Instance of a Custom Collection .......
myCol.ItemAdded = this.ItemAdded;
myCol.ItemRemoved = this.ItemRemoved;
return myCol;
}
In VB.NET I have this.
Public Overridable Function Clone() As Object Implements ICloneable.Clone
...... Instance of a Custom Collection .......
myCol.ItemAdded = me.ItemAdded
myCol.ItemRemoved = me.ItemRemoved
return myCol
End Function
The system tells me I need to use a 'RaiseEvent' statement to raise an event.
How do I go about doing the same thing in VB.NET that was done in C#?
Thank You
AM