General information
Category:
Forms & Form designer
>>When using a Chechbox control, if the user double clicks the control, the Valid method fires twice. Once before the Double click and once after. I got around this by having the double click method change the control comment to "DC" then the first thing the Valid method does is check to see if the comment is "DC". If it is, the Valid method changes the comment to blank and returns else it does what ever. This seems a little clummsy. Do you have a better idea?
>Robert,
>
>How about taking your code out of the Valid and putting it in the interactivechang?
Thanks,
Good idea, but, I have a varible bound to the control and the bound varible doesn't update until the valid event. Try this,
Make a form with a checkbox control then in the click/interactivechange/valid/when/dblclick methods enter the following:
activate screen
counter = counter+1
? program(),this.value,test1,counter
set the controlsource equal to test1
save the form then before running at the command prompt set test1 = false and counter = 0. Run the form, then click and dblclick on the check box. You will see my problem.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only