Did you add the following line to the USING statements at the top of the file? USING System.Windows.Forms.*. Continue reading...