im not sure, how this is possible...
i have done this in java web application, wherein a Servlet is called on clicking the Button in a pdf.
Add a Button, change the control type to "Submit" and give the servlet URL in the Submit tab.
But, im not sure how to do this for a window appln.