Hallo,
ich komme gerade nicht ganz weiter.
Ich will vorgegebene Zahlen in eine Textbox schreiben.
Das der Code zu länge wär für eine zeile habe ich mehrer ,gelsen wird aber immer nur genau die erste
Schreibe ich den code in einer Zeile wird es klappen !!
ich komme gerade nicht ganz weiter.
Ich will vorgegebene Zahlen in eine Textbox schreiben.
Das der Code zu länge wär für eine zeile habe ich mehrer ,gelsen wird aber immer nur genau die erste
Schreibe ich den code in einer Zeile wird es klappen !!
Visual Basic-Quellcode
- Private Sub ComboBox1_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
- Dim Auswahl As String = ComboBox1.Text
- If Auswahl = "Gang Getriebe : FDP" Then TextBox1.Text = "17" : TextBox2.Text = " 9"
- TextBox3.Text = "28" : TextBox4.Text = "8"
- TextBox5.Text = "34" : TextBox6.Text = "18"
- TextBox7.Text = "33" : TextBox8.Text = "25"
- TextBox9.Text = "30" : TextBox10.Text = "29"
- TextBox11.Text = "29" : TextBox12.Text = "36"
- TextBox13.Text = "26" : TextBox14.Text = "38"
- TextBox15.Text = "38" : TextBox16.Text = "11"
- If Auswahl = "Gang Getriebe : FRQ" Then TextBox1.Text = "27" : TextBox2.Text = " 9"
- TextBox3.Text = "28" : TextBox4.Text = "8"
- TextBox5.Text = "34" : TextBox6.Text = "18"
- TextBox7.Text = "32" : TextBox8.Text = "26"
- TextBox9.Text = "29" : TextBox10.Text = "30"
- TextBox11.Text = "29" : TextBox12.Text = "36"
- TextBox13.Text = "26" : TextBox14.Text = "38"
- TextBox15.Text = "38" : TextBox16.Text = "11"