以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助] 窗口表空白区,点击右键 “Empty” 无效  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=8992)

--  作者:古奇
--  发布时间:2011/1/12 16:10:00
--  [求助] 窗口表空白区,点击右键 “Empty” 无效

窗口表事件: BeforeShowContextMenu

If e.HitType = HitTypeEnum.Cell  Then
    MessageBox.Show("一个单元格!!", "提示")
ElseIf e.HitType = HitTypeEnum.Row Then
    MessageBox.Show("一行!!", "提示")
ElseIf e.HitType = HitTypeEnum.Column Then
    MessageBox.Show("一列!!", "提示")
ElseIf e.HitType = HitTypeEnum.Range Then
    MessageBox.Show("多个个单元格!!", "提示")
ElseIf e.HitType = HitTypeEnum.Empty Then
    MessageBox.Show("空白区域!!", "提示")
End If
e.Cancel = True

 

HitTypeEnum.Empty  无效    其他都能提示相应内容


--  作者:狐狸爸爸
--  发布时间:2011/1/12 16:19:00
--  
收到,谢谢。