[求助] 窗口表空白区,点击右键 “Empty” 无效 Post By:2011/1/12 16:10:00 [显示全部帖子]
窗口表事件: 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