質問編集履歴
1
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ラジオボタンを
|
1
|
+
ラジオボタンをチェック後、combobox表示を消したい。
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
##ソースコード
|
2
2
|
|
3
3
|
```ここに言語を入力
|
4
4
|
|
@@ -10,19 +10,9 @@
|
|
10
10
|
|
11
11
|
foam_load
|
12
12
|
|
13
|
-
|
13
|
+
list.Add("(なし)",0)'ラジオボタン1を押すと(なし)表示
|
14
14
|
|
15
|
-
RadioButton1.Checked = True
|
16
|
-
|
17
|
-
list.Add("(なし)",0)
|
18
|
-
|
19
|
-
End If
|
20
|
-
|
21
|
-
If RadioButton2.Checked = True Then
|
22
|
-
|
23
|
-
RadioButton2.Checked = False
|
24
|
-
|
25
|
-
list.Add("A",0)
|
15
|
+
list.Add("A",0)'ラジオボタン2を押すとA~F表示
|
26
16
|
|
27
17
|
list.Add("B",0)
|
28
18
|
|
@@ -34,13 +24,7 @@
|
|
34
24
|
|
35
25
|
list.Add("F",0)
|
36
26
|
|
37
|
-
End If
|
38
|
-
|
39
|
-
If RadioButton3.Checked = False Then
|
40
|
-
|
41
|
-
RadioButton3.Checked = True
|
42
|
-
|
43
|
-
list.Add("G",0)
|
27
|
+
list.Add("G",0)’ラジオボタン3を押すとG~L表示
|
44
28
|
|
45
29
|
list.Add("H",0)
|
46
30
|
|
@@ -52,7 +36,7 @@
|
|
52
36
|
|
53
37
|
list.Add("L",0)
|
54
38
|
|
55
|
-
|
39
|
+
|
56
40
|
|
57
41
|
ComboBox1.DisplayMember = "key"
|
58
42
|
|
@@ -68,6 +52,8 @@
|
|
68
52
|
|
69
53
|
Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.CheckedChanged
|
70
54
|
|
55
|
+
'ラジオボタン2と3のcomboboxの表示は消える
|
56
|
+
|
71
57
|
If RadioButton1.Checked = True Then
|
72
58
|
|
73
59
|
RadioButton1.Checked = True
|
@@ -80,7 +66,13 @@
|
|
80
66
|
|
81
67
|
end if
|
82
68
|
|
69
|
+
if RadioButton1.Checked = False Then
|
70
|
+
|
71
|
+
list.Clear()
|
72
|
+
|
73
|
+
end if
|
74
|
+
|
83
|
-
end sub
|
75
|
+
end sub
|
84
76
|
|
85
77
|
Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.CheckedChanged
|
86
78
|
|
@@ -93,6 +85,12 @@
|
|
93
85
|
RadioButton3.Checked = False
|
94
86
|
|
95
87
|
ComboBox1.SelectedIndex = 1'A~
|
88
|
+
|
89
|
+
end if
|
90
|
+
|
91
|
+
if RadioButton2.Checked = False Then
|
92
|
+
|
93
|
+
list.Clear()
|
96
94
|
|
97
95
|
end if
|
98
96
|
|
@@ -110,6 +108,12 @@
|
|
110
108
|
|
111
109
|
end if
|
112
110
|
|
111
|
+
if RadioButton3.Checked = False Then
|
112
|
+
|
113
|
+
list.Clear()
|
114
|
+
|
115
|
+
end if
|
116
|
+
|
113
117
|
end sub
|
114
118
|
|
115
119
|
```
|
@@ -118,21 +122,21 @@
|
|
118
122
|
|
119
123
|
##わからない事
|
120
124
|
|
121
|
-
|
125
|
+
修正してみましたが解決しませんでした。
|
122
126
|
|
123
|
-
|
127
|
+
具体的には
|
124
128
|
|
125
129
|
|
126
130
|
|
127
|
-
|
131
|
+
ラジオボタン1を有効「(なし)」表示され「2,3の表示を消す」
|
128
132
|
|
129
|
-
|
133
|
+
ラジオボタン2を押すとA~F表示され「1と3の表示を消す」
|
130
134
|
|
131
|
-
|
135
|
+
ラジオボタン3を押すとG~L表示され「1,2の表示を消す」
|
132
136
|
|
133
|
-
3を押すとG~L表示され2の表示は消える
|
134
137
|
|
138
|
+
|
135
|
-
|
139
|
+
すいません、いろいろ試しに検索したりしても解決しませんでした。
|
136
140
|
|
137
141
|
|
138
142
|
|