RaiseEvent???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have FormA and FormB, and wish an event raised by FormB can be trapped by
FormA. Is that possible? It seems that the FormA cannot trap the event by
using the following code. Any suggestions? Thanks.

' in FormA
Private WithEvents m_frmA as new FormA
'...
Private Sub OnFormBDataChanged(Id as integer) Handles m_frmB.DataChanged
'...
End Sub

' in FormB
Event DataChanged(ByVal Id As integer)
'...
RaiseEvent DataChanged(1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top