namespace cForm
 {
 partial class cForm
 {

 // Required designer variable.

 private System.ComponentModel.IContainer components = null;

 // Clean up any resources being used.
 // <param name="disposing">true if managed resources should be disposed;
 // otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && (components != null))
     {
         components.Dispose();
     }
     base.Dispose(disposing);
 }

 #region Windows Form Designer generated code


 // Required method for Designer support - do not modify
 // the contents of this method with the code editor.

 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.mainPictureBox = new System.Windows.Forms.PictureBox();
     this.mainTimer = new System.Windows.Forms.Timer(this.components);
   ((System.ComponentModel.ISupportInitialize)(this.mainPictureBox)).
                         BeginInit();
     this.SuspendLayout();
     // 
     // mainPictureBox
     // 
     this.mainPictureBox.BackColor = System.Drawing.Color.White;
     this.mainPictureBox.BorderStyle =
                   System.Windows.Forms.BorderStyle.FixedSingle;
     this.mainPictureBox.Dock = System.Windows.Forms.DockStyle.Fill;
     this.mainPictureBox.Location = new System.Drawing.Point(0, 0);
     this.mainPictureBox.Name = "mainPictureBox";
     this.mainPictureBox.Size = new System.Drawing.Size(569, 538);
     this.mainPictureBox.TabIndex = 0;
     this.mainPictureBox.TabStop = false;
     // 
     // mainTimer
     // 
     this.mainTimer.Interval = 250;
     this.mainTimer.Tick += new System.EventHandler(this.mainTimer_Tick);
     // 
     // cForm
     // 
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(569, 538);
     this.Controls.Add(this.mainPictureBox);
     this.Name = "cForm";
     this.Text = "cForm";
 this.Paint +=
               new System.Windows.Forms.PaintEventHandler(this.bForm00_Paint);
 this.Layout +=
 new System.Windows.Forms.LayoutEventHandler(this.bForm00_Layout);
((System.ComponentModel.ISupportInitialize)(this.mainPictureBox)).EndInit();
 this.ResumeLayout(false);
 }

 #endregion

 private System.Windows.Forms.PictureBox mainPictureBox;

 // Определение неизменяемых характеристик рамки окна приложения. 
 private void GetBordersGabarits()
 {
     this.borderHeight = this.Height - this.ClientSize.Height;
     this.borderWidth = this.Width - this.ClientSize.Width;        
 }

 // Определение предельных габаритов окна приложения.
 private void SetMinMaxSize()
 {
  this.MinimumSize =
    new System.Drawing.Size(minWidth + borderWidth, minHeight + borderHeight);
  this.MaximumSize =
    new System.Drawing.Size(maxWidth + borderWidth, maxHeight + borderHeight);
 }
 }
 }

Листинг 17.2.
Закрыть окно