C # cleans up all the resources that are in use

Source: Internet
Author: User

Namespace Qqfrm
{
Partial class Form1
{
<summary>
The required designer variables.
</summary>
Private System.ComponentModel.IContainer components = null;

<summary>
Clean up all the resources that are in use.
</summary>
<param name= "disposing" > True if the managed resource should be disposed, otherwise false. </param>
protected override void Dispose (bool disposing)
{
if (disposing && (components = null))
{
Components. Dispose ();
}
Base. Dispose (disposing);
}

#region the code generated by the Windows Forms Designer

<summary>
The designer supports the required method-do not
Use the Code Editor to modify the contents of this method.
</summary>
private void InitializeComponent ()
{
this.components = new System.ComponentModel.Container ();
This.timer1 = new System.Windows.Forms.Timer (this.components);
This.timer2 = new System.Windows.Forms.Timer (this.components);
This.panel1 = new System.Windows.Forms.Panel ();
This.panel_title = new System.Windows.Forms.Panel ();
This.panel_close = new System.Windows.Forms.Panel ();
This.panel2 = new System.Windows.Forms.Panel ();
This.panel_Title.SuspendLayout ();
This. SuspendLayout ();
//
Timer1
//
This.timer1.Enabled = true;
This.timer1.Interval = 2;
This.timer1.Tick + = new System.EventHandler (This.timer1_tick);
//
Timer2
//
This.timer2.Interval = 1;
This.timer2.Tick + = new System.EventHandler (This.timer2_tick);
//
Panel1
//
This.panel1.BackgroundImage = global::qqfrm.properties.resources._01;
This.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
This.panel1.Location = new System.Drawing.Point (0, 332);
This.panel1.Name = "Panel1";
This.panel1.Size = new System.Drawing.Size (170, 4);
This.panel1.TabIndex = 1;
//
Panel_title
//
This.panel_Title.BackColor = System.Drawing.Color.DarkBlue;
This.panel_Title.BackgroundImage = global::qqfrm.properties.resources._1;
THIS.PANEL_TITLE.CONTROLS.ADD (This.panel_close);
This.panel_Title.Dock = System.Windows.Forms.DockStyle.Top;
This.panel_Title.Location = new System.Drawing.Point (0, 0);
This.panel_Title.Name = "Panel_title";
This.panel_Title.Size = new System.Drawing.Size (170, 27);
This.panel_Title.TabIndex = 0;
This.panel_Title.MouseMove + = new System.Windows.Forms.MouseEventHandler (this.panel_title_mousemove);
This.panel_Title.MouseDown + = new System.Windows.Forms.MouseEventHandler (This.panel_title_mousedown);
This.panel_Title.MouseUp + = new System.Windows.Forms.MouseEventHandler (this.panel_title_mouseup);
//
Panel_close
//
This.panel_Close.BackColor = System.Drawing.Color.Red;
This.panel_Close.BackgroundImage = Global::qqfrm.properties.resources.close;
This.panel_Close.Location = new System.Drawing.Point (149, 5);
This.panel_Close.Name = "Panel_close";
This.panel_Close.Size = new System.Drawing.Size (18, 18);
This.panel_Close.TabIndex = 0;
This.panel_Close.Click + = new System.EventHandler (This.panel1_click);
//
Panel2
//
This.panel2.BackgroundImage = global::qqfrm.properties.resources._02;
This.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
This.panel2.Location = new System.Drawing.Point (0, 27);
This.panel2.Name = "Panel2";
This.panel2.Size = new System.Drawing.Size (170, 305);
This.panel2.TabIndex = 2;
//
Form1
//
This. Autoscaledimensions = new System.Drawing.SizeF (6F, 12F);
This. AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
This. ClientSize = new System.Drawing.Size (170, 336);
This. Controls.Add (THIS.PANEL2);
This. Controls.Add (THIS.PANEL1);
This. Controls.Add (This.panel_title);
This. FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
This. Name = "Form1";
This. Text = "Form1";
This. Load + = new System.EventHandler (this. Form1_Load);
This.panel_Title.ResumeLayout (FALSE);
This. ResumeLayout (FALSE);

}

#endregion

Private System.Windows.Forms.Panel Panel_title;
Private System.Windows.Forms.Timer timer1;
Private System.Windows.Forms.Timer Timer2;
Private System.Windows.Forms.Panel Panel_close;
Private System.Windows.Forms.Panel Panel1;
Private System.Windows.Forms.Panel Panel2;
}
}


C # cleans up all the resources that are in use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.