主题:如何在VB中实现文本全选?
ls599925
[专家分:0] 发布于 2008-06-19 08:42:00
比如这些文本筐,用什么代码能实现全选文本啊?谢谢 [em14]
最后更新于:2008-06-19 08:43:00
回复列表 (共1个回复)
沙发
天天学习 [专家分:4570] 发布于 2008-06-19 18:19:00
On error resume next
dim t as control
for each t in form1.controls
if typeof t is TextBox then
t.selStart=0
t.selLength=Len(t.text)
End if
Next
我来回复