vb.net中如何给多个textbox赋值?
vb中这段函数用vb.net如何实现:fori=0to200ifShowFlag(i)=turethentextbox(i)="ok"endifnextitextbox(...
vb中这段函数用vb.net 如何实现:
for i=0 to 200
if ShowFlag(i)=ture then
textbox(i)="ok"
end if
next i
textbox(i)="ok" 应该为textbox(i).text="ok" 展开
for i=0 to 200
if ShowFlag(i)=ture then
textbox(i)="ok"
end if
next i
textbox(i)="ok" 应该为textbox(i).text="ok" 展开
展开全部
窗体上设置键老御几个textbox控件,含橘一个button控件,执行下面这段稿岩代码,ok了
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ctemp As TextBox
For Each ct As Control In Me.Controls
If TypeOf ct Is TextBox Then
ctemp = ct
ctemp.Text = "aaa"
End If
Next
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ctemp As TextBox
For Each ct As Control In Me.Controls
If TypeOf ct Is TextBox Then
ctemp = ct
ctemp.Text = "aaa"
End If
Next
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
窗体上设置键老御几个textbox控件,含橘一个button控件,执行下面这段稿岩代码,ok了
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ctemp As TextBox
For Each ct As Control In Me.Controls
If TypeOf ct Is TextBox Then
ctemp = ct
ctemp.Text = "aaa"
End If
Next
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ctemp As TextBox
For Each ct As Control In Me.Controls
If TypeOf ct Is TextBox Then
ctemp = ct
ctemp.Text = "aaa"
End If
Next
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询