ขอบพระคุณอาจารย์มากๆค่ะที่ช่วยชี้แนะ
ดิฉันปรับแก้ไขตามคำแนะนำของอาจารย์แล้วค่ะ
และก็สามารถแก้ไขได้
มีบางอย่างที่ยังไม่ค่อยเข้าใจ จึงอยากขอคำอธิบายจากอาจารย์ค่ะ
1.คือ comมันไม่ยอมให้ใช้ชื่อ
OptionButton3ค่ะ ดิฉันก็เลยเปลี่ยนชื่อเป็น rad3แล้วถึงใช้ได้
แล้วทำไมอันอื่นไม่ต้องเปลี่ยนก็ใช้ได้คะ
2.คือ สามารถกดปุ่มเลือกได้แค่อันอันเดียวเองเหรอคะ
เช่น กดOptionButton1 ปุ่มoptiond ก็อยู่ที่OptionButton1
แต่พอOptionButton3 ปุ่มoptiond ก็อยู่ที่OptionButton3
อยากให้ปุ่มกลมๆติดอยู่ได้ 2 ที่คือ 1หรือ2 และ 3หรือ4 ได้มั้ยคะอาจารย์
ขอบพระคุณค่ะ
Code: Select all
Private Sub OptionButton1_Click()
With Me
.txtIssuer.Enabled = False
End With
End Sub
Private Sub OptionButton2_Click()
With Me
.txtIssuer.Enabled = True
End With
End Sub
Private Sub rad3_Click()
With Me
.txtPrice.Enabled = False
End With
End Sub
Private Sub OptionButton4_Click()
With Me
.txtPrice.Enabled = True
End With
End Sub