Dim t As Table = Tables("我的工作台")
t.sort = "申请日期"
Dim n As Integer = t.Rows.count
Dim lbl As WinForm.Label
Dim lb2 As WinForm.Label
lb2 = e.Form.Controls("Label2")
lb2.Text = "您的待办事项有" & n & "条"
If n = 0 Then
e.Form.Controls("Label1").Visible = True
lbl = e.Form.Controls("Label1")
lbl.Text = "没有数据"
Else
e.Form.Controls("Label1").Visible = False
End If
老师你好!以上这段代码是在本窗口中按钮设置的,如果我要设置计划管理中,代码应该怎么写?
主要是这个代码 lb2 = e.Form.Controls("Label2") 应该怎么指定窗口?
谢谢老师!