Hallo,
Ich habe 10 Button mit der Beschreiftung 1,2,3...0
Dann habe ich 3 Textboxen A,B,C
Ich habe einen Touchscreen Monitor. Ich klicke auf A und danach drei mal auf 5, dann soll 555 in der Textbox A drin sein.
Meine Lösung:
C#-Quelltext
1:
| meinetextboxA.Text += "5"; |
Blöd ist es, wenn ich etwas in B oder C reinschreiben möchte.
Idee A
C#-Quelltext
1: 2: 3: 4: 5: 6: 7: 8:
| if(meinetextboxA.Focus()) meinetextboxA.Text += "5";
if(meinetextboxB.Focus()) meinetextboxB.Text += "5";
if(meinetextboxC.Focus()) meinetextboxC.Text += "5"; |
geht aber nicht
Moderiert von Th69: C#-Tags hinzugefügtModeriert von Th69: Topic aus C# - Die Sprache verschoben am Mo 27.02.2017 um 19:57