After you’ve created or imported your pages, you can then add code to controls and elements. Any element of a page can have code attached to it, so long as it has an ID. As mentioned previously, an ID is used to identify an element, and can be modified by selecting the element, and changing the ID property in the Properties window. You can add code to an element just as you would a control in a standard EXE project. Selecting Code from the View menu, double-clicking a control, or right-clicking an element and selecting View Code will bring up the Code window. From here, you can add code to events.