Is the following Code the way to use the OptionButton in a Form?

Option Explicit
Dim HoleType

Sub OB1_Click
HoleType="Mechanical"
OB1.ForeColor = &H000000C0&
OB1.Value = True
OB2.Value = False
OB2.ForeColor =&H00000000&
OB3.Value = False
OB3.ForeColor =&H00000000&
OB4.Value = False
OB4.ForeColor =&H00000000&
End Sub

Sub OB2_Click
HoleType="Hand Hole"
OB2.ForeColor =&H000000C0&
OB2.Value = True
OB1.Value = False
OB1.ForeColor =&H00000000&
OB3.Value = False
OB3.ForeColor =&H00000000&
OB4.Value = False
OB4.ForeColor =&H00000000&
End Sub

Where would I find other OptionButton Examples?

Thanks





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to