2024年4月5日发(作者:)
[汇总]VB数据库编程中MSHFlexGrid控件用法详解
VB数据库编程中MSHFlexGrid控件用法详解
添加MSHFlexGrid将Name改成flex1
添加text 将name 改成txtedit
Public rs1 As New set, rs2 As New set '定义数据
集对象
Dim i As Integer, j As Integer
Sub EditKeyCode(MSHFlexGrid As Control, Edt As Control, KeyCode As
Integer, Shift As
Integer)
'标准编辑控件处理。
Select Case KeyCode
Case 27 'ESC:隐藏焦点并将其返回 MSFlexGrid
e = False
us
Case 13 'ENTER 将焦点返回 MSFlexGrid。
us
DoEvents
If < - 1 Then
= + 1
Else
If = - 1 Then
= + 1
= 1
End If
发布评论