嗨,我想在选择ComboBox中的项目时在RichTextbox中显示三列。我想显示相应的演员年份、电影名称和电影列制作的金额。这是我所拥有的:
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