Is it possible to raise an event from a class module then receive it in a form module???
E.g.
Class module Thing:
-------------------
Public Event Ding(DingValue as Integer)
Public Property Let Value (SomeValue as Integer)
RaiseEvent Ding(SomeValue + 10)
End Property
Form Module frmMain:
--------------------
Private MyThing as new Thing
Private Sub Form_Load()
MyThing.Value = 18
End Sub
Now... let's say I have a textbox, where I want to display the value returned to me via the event 'Ding' (in this case 28). Erm... how would I write this in the Form module code?
Any Thoughts? (I'll be happy to clarify further, if required!)
Peace
Lego
"I don't think we have the right or the wisdom to interfere with an alien tribe no matter how it's evolving!" - Captain James T. Kirk
"Your people must embrace these words and the words that follow, for their true meanings are..." - Captain James T. Kirk (same episode)
E.g.
Class module Thing:
-------------------
Public Event Ding(DingValue as Integer)
Public Property Let Value (SomeValue as Integer)
RaiseEvent Ding(SomeValue + 10)
End Property
Form Module frmMain:
--------------------
Private MyThing as new Thing
Private Sub Form_Load()
MyThing.Value = 18
End Sub
Now... let's say I have a textbox, where I want to display the value returned to me via the event 'Ding' (in this case 28). Erm... how would I write this in the Form module code?
Any Thoughts? (I'll be happy to clarify further, if required!)
Peace
Lego
"I don't think we have the right or the wisdom to interfere with an alien tribe no matter how it's evolving!" - Captain James T. Kirk
"Your people must embrace these words and the words that follow, for their true meanings are..." - Captain James T. Kirk (same episode)