Dim r As Row = Tables("员工资料").Current
For i As Integer = 0 To DataTables("员工资料").DataCols.Count -1
Dim Co As String = DataTables("员工资料").DataCols(i).Name
e.Form.Controls(co).Enabled = False
If r.IsNull(co) = False Then
If e.Form.Controls(co).Name = co And co <> "照片" Then
e.Form.Controls(co).text = r(Co)
End If
End If
Next
两个问题均出在人事管理中的基础资料窗口
1、窗口的afterload事件里面的,e.Form.Controls(co).Enabled = False,enabled属性的字体是灰色的不好看,我改成e.Form.Controls(co).ReadOnly = True,为什么不生效,控件里面的内容可以更改?求解。。。。
2、为什么我绑定了照片字段 ,图片浏览器却用不起?
[此贴子已经被作者于2016/8/17 17:25:53编辑过]