listbox控件中的值依次输出到另一个文本框中
3个回答
展开全部
1楼是错的。我只晓得从textbox里往listbox里面输入。
Dim dd As String
Private Sub Command1_Click()
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
List1.Enabled = True
dd = Text1.Text & "(" & Text2.Text & "," & Text3.Text & ")"
List1.AddItem dd
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
End Sub
Private Sub Command2_Click()
Unload Form1
End Sub
Private Sub Form_Load()
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
End Sub
Private Sub List1_Click()
End Sub
至于反过来就不晓得了,写这些仅供参考
Dim dd As String
Private Sub Command1_Click()
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
List1.Enabled = True
dd = Text1.Text & "(" & Text2.Text & "," & Text3.Text & ")"
List1.AddItem dd
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
End Sub
Private Sub Command2_Click()
Unload Form1
End Sub
Private Sub Form_Load()
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
End Sub
Private Sub List1_Click()
End Sub
至于反过来就不晓得了,写这些仅供参考
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
foreach(listitem i in listbox.items)
{
textbox1.text=i.text;
}
{
textbox1.text=i.text;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询