-
Regarding the option1. If I have three options in
my form (option1(0) - option1(2), why when I load
the form, option1(0) is always the default (selected)?
Can I do something so that none is selected until the
user click on them?
Again, thanks for all of you great HELP, folks!
-
I think that something has to be selected at all times
-
What I am trying to do
'What I am trying to do is that if the user clicks
' on certain option, then run that program. And
' option1(0) is a valid option, but yet it will
' call the option1_Click() when I load the form, and
' I don't want to run option1(0) until the user is
' actually click on it.
Private Sub Option1_Click(Index As Integer)
' will come here when the form is loaded! Why?
End Sub
Again, thanks alot for the help!
-
I suggest choosing the option then using a command button or something to determine which option is selected, then do whatever
-
I think this is a bug
Because it does not work like that for all others
option that is placed individually.
Otherwise, the option1_click() really should have been
option1_default() and/or option1_bug().
-
Workaround
Create a module level boolen variable called something like mblnSkipFirst and set it to true in the Form_Load event.
At the beginning of the Option_Click, add:
Code:
If blnSkipOnce Then
blnSkipOnce = False
Exit Sub
End If
-
try this:
In the Activate event of your form add this:
Dim x as Integer
For x = 0 To 2
Option1(x).Value = False
Next
-
Thanks. That sounds like something I could easily do.