select a point while a userform is running?

When the macro is executed , user form will appear and it has a button for select a point in a part document. But i cannot select anything in the SolidWorks model because user form will blink several times and nothing will be selected in the model. Can anyone help me please ?

Bst Rgds.

SolidworksApi macros