How to create an event that is triggered by a prameter?

  • Thread starter Thread starter David L Wright II
  • Start date Start date
D

David L Wright II

I am extending the datagrid by adding 3 parameters that can be set both
during design time and run time. How can I develop an event that is
executed at run time based on the value of the parameter?
 
Hi,

Sorry posted the last to the wrong message. Try something like
this.

Private mstrParameter As String
Public Event PropertyChanged(ByVal e As EventArgs)

Public Property MyParameter() As String
Get
Return mstrParameter
End Get
Set(ByVal Value As String)
mstrParameter = Value
If Not Me.DesignMode Then RaiseEvent PropertyChanged(New
EventArgs)
End Set
End Property


Ken
 
Ken,

Your example was exactly what I was looking for and it's quite simple.

Thanks,
Dave
 
Back
Top