首先,窗体的设置如下。 (特别申明:1、如若转载请标明出处http://blog.csdn.net/gufengcangying。 2、 如若雷同,算我抄你!) 其中各个控件相应的属性设置等等,在Form1.Desigener .cs中有相应的代码,如下: // // open // this.open.Location = new System.Drawing.Point(37, 46); this.open.Name = "open"; this.open.Size = new System.Drawing.Size(75, 23); this.open.TabIndex = 0; this.open.Text = "打开图像"; this.open.UseVisualStyleBackColor = true; this.open.Click += new System.EventHandler(this.open_Click); // // save // this.save.Location = new System.Drawing.Point(37, 92); this.save.Name = "save"; this.save.Size = new System.Drawing.Size(75, 23); this.save.TabIndex = 1; this.save.Text = "保存图像"; this.save.UseVisualStyleBackColor = true; this.save.Click += new System.EventHandler(this.save_Click); // // close // this.close.Location = new System.Drawing.Point(37, 138); this.close.Name = "close"; this.close.Size = new System.Drawing.Size(75, 23); this.close.TabIndex = 2; this.close.Text = "关闭"; this.close.UseVisualStyleBackCo