Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ボタンをクリックしたときに、2 つの単語を 1 つのテキスト ボックスに分割し、最初の単語をテキスト ボックス 1 に、2 番目の単語をテキスト ボックス 2 に配置するにはどうすればよいですか?
このような?
Private Sub SomeButton_Click(sender As System.Object, e As System.EventArgs) Handles SomeButton.Click Dim words = txt1.Text.Split() txt2.Text = words(0).Trim() If words.Length <> 1 txt3.Text = words(1).Trim() End If End Sub