VB Code:
  1. Dim WithEvents m_MyOcx As Object