You handle the Click event of the Button. In the designer, double-click the Button and that will generate a Click event handler, i.e. a method that will be executed when the Button is clicked. Any code you put in that method will be executed when the Button is clicked.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.