There are a number of threads on this topic (use the Search box at the top of this page). Simply put, create a .ICO file with at least 16x16x16 and 32x32x16 images, and then in the Project Info, specify this file (and rebuild the .EXE). In addition if you want it to appear on the main window, include a statement like _screen.ico="myicon.ico".
Rick