mshflexgrid:用什么方法可以触发列头的右击事件,想通过它来完成列的隐藏和显示?
mshflexgrid:用什么方法可以触发列头的右击事件,想通过它来完成列的隐藏和显示?
[解决办法]
Private Sub MSFlexGrid1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
If Button = vbRightButton And MSFlexGrid1.MouseRow = 0 Then
MsgBox "列头右击"
End If
End Sub
[解决办法]
楼主记得把楼上代码中的“MSFlexGrid1”改为“MSHFlexGrid1”阿,
俺还纳闷呢。呵呵