質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,11 +22,11 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
1.Combobox1にフォーカスがある状態で、Combobox2の「
|
25
|
+
1.Combobox1にフォーカスがある状態で、Combobox2の「∨」ボタン(Combobox右端の∨)をクリック。
|
26
26
|
|
27
27
|
2.一瞬項目が表示されるが、その後項目が消えてしまう。
|
28
28
|
|
29
|
-
3.再度、Combobox2の「
|
29
|
+
3.再度、Combobox2の「∨」ボタンをクリックすると、項目が表示される。
|
30
30
|
|
31
31
|
|
32
32
|
|
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
-
1.Combobox1にフォーカスがある状態で、Combobox2の「
|
37
|
+
1.Combobox1にフォーカスがある状態で、Combobox2の「∨」ボタンをクリック。
|
38
38
|
|
39
39
|
2.項目が表示される。
|
40
40
|
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -88,21 +88,19 @@
|
|
88
88
|
|
89
89
|
|
90
90
|
|
91
|
-
comboBox1.Items.Add("0: a ");
|
91
|
+
comboBox1.Items.Add("0: a ");
|
92
|
-
|
92
|
+
|
93
|
-
comboBox1.Items.Add("1: b ");
|
93
|
+
comboBox1.Items.Add("1: b ");
|
94
|
-
|
94
|
+
|
95
|
-
comboBox1.Items.Add("2: c ");
|
95
|
+
comboBox1.Items.Add("2: c ");
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
-
comboBox2.Items.Add("0: X ");
|
99
|
+
comboBox2.Items.Add("0: X ");
|
100
|
-
|
100
|
+
|
101
|
-
comboBox2.Items.Add("1: Y ");
|
101
|
+
comboBox2.Items.Add("1: Y ");
|
102
|
-
|
102
|
+
|
103
|
-
comboBox2.Items.Add("2: Z ");
|
103
|
+
comboBox2.Items.Add("2: Z ");
|
104
|
-
|
105
|
-
|
106
104
|
|
107
105
|
}
|
108
106
|
|
@@ -124,10 +122,6 @@
|
|
124
122
|
|
125
123
|
{
|
126
124
|
|
127
|
-
|
128
|
-
|
129
|
-
//キーイベントをフォームで受け取る
|
130
|
-
|
131
125
|
this.KeyPreview = true;
|
132
126
|
|
133
127
|
|
@@ -142,8 +136,6 @@
|
|
142
136
|
|
143
137
|
{
|
144
138
|
|
145
|
-
// テキストボックスの内容が変更された場合にイベントを発生させる
|
146
|
-
|
147
139
|
comboBoxArray[i].Enter += new EventHandler(_Enter);
|
148
140
|
|
149
141
|
}
|
@@ -160,14 +152,10 @@
|
|
160
152
|
|
161
153
|
{
|
162
154
|
|
163
|
-
// 指定した複数の Object インスタンスが同一インスタンスかどうかを判断します
|
164
|
-
|
165
155
|
if (Object.ReferenceEquals(sender, comboBoxArray[i]))
|
166
156
|
|
167
157
|
{
|
168
158
|
|
169
|
-
// テキストボックスに配置された値を textValues[i]に代入
|
170
|
-
|
171
159
|
comboValues[i] = (comboBoxArray[i].Text);
|
172
160
|
|
173
161
|
|
@@ -176,7 +164,7 @@
|
|
176
164
|
|
177
165
|
{
|
178
166
|
|
179
|
-
comboBox1.DroppedDown = true;
|
167
|
+
comboBox1.DroppedDown = true;
|
180
168
|
|
181
169
|
}
|
182
170
|
|
@@ -186,7 +174,7 @@
|
|
186
174
|
|
187
175
|
{
|
188
176
|
|
189
|
-
comboBox2.DroppedDown = true;
|
177
|
+
comboBox2.DroppedDown = true;
|
190
178
|
|
191
179
|
}
|
192
180
|
|
@@ -194,8 +182,6 @@
|
|
194
182
|
|
195
183
|
}
|
196
184
|
|
197
|
-
|
198
|
-
|
199
185
|
}
|
200
186
|
|
201
187
|
|
@@ -216,9 +202,9 @@
|
|
216
202
|
|
217
203
|
}
|
218
204
|
|
219
|
-
}
|
205
|
+
}
|
206
|
+
|
220
|
-
|
207
|
+
}
|
221
|
-
|
222
208
|
|
223
209
|
}
|
224
210
|
|