如何使Text文本框的属性只读?
Private Declare Function SendMessage Lib "user32" Alias _
"SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
ByVal wParam As Long, lParam As Any) As Long
Private Const EM_SETREADONLY = &HCF
程序:
Private Sub Form_Load()
Call SendMessage(Text1.hwnd, EM_SETREADONLY, True, vbNull)
End Sub
Tags:
作者:佚名评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论