こんにちは、コンボボックスのアイテムが選択されたときに、リッチテキストボックスに 3 つの列を表示したいと考えています。対応する俳優の年、映画名、および映画の列から作成された金額を表示したいと考えています。ここに私が持っているものがあります:
Private Sub employeeComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles employeeComboBox.SelectedIndexChanged
If employeeComboBox.SelectedItem Is "Sean Connery" Then
historyTextBox.Text = ""
ElseIf employeeComboBox.SelectedItem Is "George Lazenby" Then
historyTextBox.Text = ""
ElseIf employeeComboBox.SelectedItem Is "Roger Moore" Then
historyTextBox.Text = ""
ElseIf employeeComboBox.SelectedItem Is "Timothy Dalton" Then
historyTextBox.Text = ""
ElseIf employeeComboBox.SelectedItem Is "Pierce Brosnan" Then
historyTextBox.Text = ""
ElseIf employeeComboBox.SelectedItem Is "Daniel Craig" Then
historyTextBox.Text = ""
End If
End Sub