|
-
Mar 4th, 2002, 05:54 AM
#1
Thread Starter
Addicted Member
Option buttons
I want a set of option buttons on a form with NONE selected
When the form loads the first option is always selected
doing this:
Code:
Option Explicit
Private Sub Form_Activate()
Option1(0).Value = False
End Sub
will unset it but If I then minimize the form it becomes set again when I restore it.
Another light-hearted post from Guru 
-
Mar 4th, 2002, 06:03 AM
#2
Well ...
When you put the option buttons on the form, make sure none of them have the Value set to True.
.
-
Mar 4th, 2002, 06:30 AM
#3
Thread Starter
Addicted Member
Re: Well ...
Originally posted by honeybee
When you put the option buttons on the form, make sure none of them have the Value set to True.
.
Did you try this?
I've worked out what the problem is now anyway
If you have another control with a lower tab index , it gets focus on form load and the option buttons remain unset
If the form ONLY has option buttons on it one of them gets set
The way round it is to have the opytion buttons on a frame (which I did have anyway) and hide a command button behind it.
Another light-hearted post from Guru 
-
Mar 5th, 2002, 01:18 AM
#4
Well ...
Or set the TabStop property to False, but then you wouldn't be able to tab into them. Yes, I realize now the focus could select a button.
.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|