Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Option Button click event

Status
Not open for further replies.

2969

IS-IT--Management
Oct 18, 2001
107
US
hi

Is there a way that when I set optionButton.value = 1 it should not fireup option_click event.

th
 
Do a keyword search on this site for Option Button, look at page 2 second down. Should help plus other references.
 
i think, as you have probably discovered, the option_click event fires when it is set to 1 automatically. You may be able to write your procedure for the button in the mousedown event instead, and then enclose the statement in the following:

if button=1 then

end if

this will ensure this part of the procedure only fires when it is left clicked.

Hope this helps

BB
 
I tend to implement a form level boolean which I test in the click event, and only continue with the rest of the event handler if the boolean is false... Then, before changing the value in code, I set the boolean (and clear it afterwards...)

mmilan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top