Hallo zusammen.
Bin neu hier, und bestimmt nicht sehr erfahren.
Aber bin mir sicher, einige von Euch können mir helfen.
Habe eine Form.
Darin ist ein TabControl.
In jeden Tab sind versch. Controls.
Ich möchte programmatisch erstmal alle CheckBox´en "checked = false;" setzen.
Bin für jede Antwort dankbar.
C#-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19:
| { int iTab = tabControl1.TabCount;
for (int i = 0; i < iTab - 1; i++) { foreach (Control c in tabControl1.TabPages[i].Controls) { if (c.GetType().Name == "CheckBox") { } } } } |
Moderiert von
Christian S.: C#-Tags hinzugefügtModeriert von
Christian S.: Topic aus C# - Die Sprache verschoben am Do 11.02.2010 um 17:48