can you turn off following action?

1. when the user double clicks on a control on the form, the sub/function is automatically generated and your cursor is placed there?

tia!