>thisform.pf1.p2.click()
>then setfocus.
This doesn't work, if I understand you correctly. You are only calling the code you added to the Click() event yourself, which happens to be automatically called when the user clicks the control manually.
Check out Message #
431382, which was posted the same day your message was.