谁能填写下面代码??

ljycn 2003-10-19 10:42:11
For Each mycon In Me.Controls
if mycon 的类型是 textbox
然后 将mycon转换成textbox 类型 mytemp
mytemp。text=“”
Next
...全文
26 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuguangwei 2003-10-20
  • 打赏
  • 举报
回复
Dim mytemp, mycon As System.Windows.Forms.Control
For Each mycon In Me.Controls
If TypeOf mycon Is TextBox Then
mytemp = CType(mycon, TextBox)
mytemp.Text = ""
End If
Next

以上在VS 2003 下通过!

为什么没有分数????
大家学习吧!!!
citylamp 2003-10-19
  • 打赏
  • 举报
回复
For Each mycon In Me.Controls
if mycon.type= textbox
then mytemp=ctype(mycon,type.textbox)
mytemp.text=“”
Next

16,549

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧