Private Sub f01Profession_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Me.Text = mGlobal.setFormTitle("PROFESSION", vppCompanyName, UCase(vpStaffId), UCase(vpStaffName))
Call pDs01Profession()
Call pDataBinding()
Call pRecordCount()
dgv01Profession.Select()
Call pLockMenu()
Catch ex As Exception
MsgBox("<f01Profession.f01Profession_Load> " & ex.Message)
End Try
End Sub
多了个gv01Profession.Select(),为了把焦点放在dgv上
Try
Me.Text = mGlobal.setFormTitle("PROFESSION", vppCompanyName, UCase(vpStaffId), UCase(vpStaffName))
Call pDs01Profession()
Call pDataBinding()
Call pRecordCount()
dgv01Profession.Select()
Call pLockMenu()
Catch ex As Exception
MsgBox("<f01Profession.f01Profession_Load> " & ex.Message)
End Try
End Sub
多了个gv01Profession.Select(),为了把焦点放在dgv上