TimerTick
Dim tab As WinForm.TabControl = e.Form.Controls("TabControl1")
Dim g1 = e.Form.Controls("RecordGrid" & (tab.SelectedIndex+1)).BaseControl
If vars("xy") <> CurrentTable.Position & "," & g1.selection.r1 Then
vars("xy") = CurrentTable.Position & "," & g1.selection.r1
Dim rt = e.form.Controls("Panel1").basecontrol.Controls("mytxt")
rt.text = iif(g1(g1.Selection.r1, 1) Is dbnull.value, "", g1(g1.Selection.r1, 1))
rt.Select(0, rt.text.length)
rt.SelectionFont = New Font("仿宋_GB2312",17) '字体字号
rt.SelectionStart = rt.text.length
End If
mytxt_TextChanged
Dim f As WinForm.Form = Forms.ActiveForm
If f IsNot Nothing Then
Dim tab As WinForm.TabControl = f.Controls("TabControl1")
Dim brgd = f.Controls("RecordGrid" & (tab.SelectedIndex+1)).BaseControl
Tables(sender.tag).current(brgd(brgd.Selection.r1,0)) = sender.text
End If
[此贴子已经被作者于2017/4/25 22:28:16编辑过]