home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / Install / program files / Borland / BDS / 3.0 / Objrepos / CSharp / WinFormTemplate.cs < prev   
Encoding:
Text File  |  2004-10-22  |  1.7 KB  |  78 lines

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. using System.Data;
  7.  
  8. namespace [!Namespace]
  9. {
  10.     /// <summary>
  11.     /// Summary description for [!FormName].
  12.     /// </summary>
  13. [!if=(InheritedFormName, "<NONE>")]
  14.     public class [!FormName] : System.Windows.Forms.Form
  15. [!else]
  16.     public class [!FormName] : [!InheritedFormName]
  17. [!endif]
  18.     {
  19.         /// <summary>
  20.         /// Required designer variable.
  21.         /// </summary>
  22.         private System.ComponentModel.Container components = null;
  23.  
  24.         public [!FormName]()
  25.         {
  26.             //
  27.             // Required for Windows Form Designer support
  28.             //
  29.             InitializeComponent();
  30.  
  31.             //
  32.             // TODO: Add any constructor code after InitializeComponent call
  33.             //
  34.         }
  35.  
  36.         /// <summary>
  37.         /// Clean up any resources being used.
  38.         /// </summary>
  39.         protected override void Dispose(bool disposing)
  40.         {
  41.             if (disposing)
  42.             {
  43.                 if (components != null)
  44.                 {
  45.                     components.Dispose();
  46.                 }
  47.             }
  48.             base.Dispose(disposing);
  49.         }
  50.  
  51.         #region Windows Form Designer generated code
  52.         /// <summary>
  53.         /// Required method for Designer support - do not modify
  54.         /// the contents of this method with the code editor.
  55.         /// </summary>
  56.         private void InitializeComponent()
  57.         {
  58.             this.components = new System.ComponentModel.Container();
  59. [!if=(InheritedFormName, "<NONE>")]
  60.             this.Size = new System.Drawing.Size(300,300);
  61.             this.Text = "[!FormName]";
  62. [!endif]
  63.         }
  64.         #endregion
  65. [!if=(MainEntry, "TRUE")]
  66.  
  67.         /// <summary>
  68.         /// The main entry point for the application.
  69.         /// </summary>
  70.         [STAThread]
  71.         static void Main() 
  72.         {
  73.             Application.Run(new [!FormName]());
  74.         }
  75. [!endif]
  76.     }
  77. }
  78.