解释一下WithEvents 用处,该怎么解决

解释一下WithEvents 用处
'Object   reference   that   lets   us   receive   events   from   the   frmMain   form.
Private   WithEvents   m_frmMain   As   frmMain
看了MSDN上关于WithEvents   的解释还是不太理解,那位能给解释WithEvents具体用处?最好结合上面代码

------解决方案--------------------
frmMain或其它自定义的类中如果有事件,在声明一个该类的变量时,如果声明中加上了withevents,在IDE的编辑下拉框中就会出现类中声明的事件。你可以用withevents或不用声明变量对比一下。