How can I define a "Change" event for a variable?



Hello

I have a variable such as "Num1", and now I want whenever the value of this variable changes, something happens. For example something like this:

Public Sub Num1_Change()
MsgBox "Number 1 Changed"
End Sub

How can I do such a thing?
Thank you

.



Relevant Pages

  • Re: How can I define a "Change" event for a variable?
    ... Javad wrote: ... I have a variable such as "Num1", and now I want whenever the value of this variable changes, something happens. ... Encapsulate it within property procedures, and do the actions in those procedures. ...
    (microsoft.public.vb.general.discussion)
  • Re: ToolTip question
    ... Public Sub New ... I do not have to do this routine everytime my variable changes, ... >> HI Imran ...
    (microsoft.public.dotnet.languages.vb)