vs 2010
I was trying to translate the following c# code:
PropertyChanged EventHandler handler = this.PropertyCh anged;
to this
Dim handler As PropertyChanged EventHandler = Me.PropertyChan ged
but it does not work in vb...
I get this error:
Error 1 'Public Event PropertyChanged (sender As Object, e As System.Componen tModel.Property ChangedEventArg s)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
does anyone know why?
I was trying to translate the following c# code:
PropertyChanged EventHandler handler = this.PropertyCh anged;
to this
Dim handler As PropertyChanged EventHandler = Me.PropertyChan ged
but it does not work in vb...
I get this error:
Error 1 'Public Event PropertyChanged (sender As Object, e As System.Componen tModel.Property ChangedEventArg s)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
does anyone know why?
Comment