//单独的资源文件
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
//总体的资源文件
this.Icon = Properties.Resources.VisualStudio;