与普通控件一样public event eventname(paras)使用时在页面加上你的控件,并在code文件里定义该变量
protected withevents <ControlID> as <UserControl>其中<ControlID>是你在页面里定义的,<UserControl>是你定义的控件类型