回答編集履歴

3

break漏れ

2018/02/06 10:04

投稿

tacsheaven
tacsheaven

スコア13703

test CHANGED
@@ -34,6 +34,8 @@
34
34
 
35
35
  control.Focus();
36
36
 
37
+ break;
38
+
37
39
  }
38
40
 
39
41
  }

2

誤字修正

2018/02/06 10:04

投稿

tacsheaven
tacsheaven

スコア13703

test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  Int32 num = 0;
22
22
 
23
- Int32.TryParse(textBox.Name.Substring("textBox".length), out num);
23
+ Int32.TryParse(textBox.Name.Substring("textBox".Length), out num);
24
24
 
25
25
  if (num != 0) {
26
26
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  foreach(Control control in textbox.FindForm().Controls) {
32
32
 
33
- if (control.Name.equals(newTextBoxName)) {
33
+ if (control.Name.Equals(newTextBoxName)) {
34
34
 
35
35
  control.Focus();
36
36
 

1

誤字修正

2018/02/06 10:03

投稿

tacsheaven
tacsheaven

スコア13703

test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  Int32 num = 0;
22
22
 
23
- Int32.TryParse(textBox.name.Substring("textBox".length), out num);
23
+ Int32.TryParse(textBox.Name.Substring("textBox".length), out num);
24
24
 
25
25
  if (num != 0) {
26
26
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  foreach(Control control in textbox.FindForm().Controls) {
32
32
 
33
- if (control.name.equals(newTextBoxName)) {
33
+ if (control.Name.equals(newTextBoxName)) {
34
34
 
35
35
  control.Focus();
36
36