更新时间:2023-11-28 21:03:16
遵循以下代码:
Follow the following coding:
lbx.Items.Add(tbx.Text);
将以上代码添加到按钮的click事件中.
Add the above code in your button''s click event.
尝试以下代码:
Try this code:
Private Sub button1_Click(sender As Object, e As EventArgs)
listBox1.Items.Add(textBox1.Text)
End Sub