To create Windows Form - About
 
 
 

       Windows Form, About
 


   Create Windows Form - About

 
Classes used in this Form:
         System.Drawing, System.Collections, System.ComponentModel, System.Windows.Forms, System.Data, System.Resources, System.Data.OleDb, System.Configuration, System.Globalization;

   Type of Controls used in this Form:
          Label, PictureBox, TextBox, Panel and 
Button

 

 Create Windows Form About
  1. On the File menu , click  New. and then click Windows Form. New File name WinForm.pas appears. (Form name - TWinForm)
  2. On the View menu , click  Object Inspector. In Object Inspector modify the following ...

    1- WinForm.pas - the File name  created
      Old New
    File Name: WinForm.pas About,pas





    2. TWinForm-  Form  name created  

      Old New
    Caption:
    Name:
    Icon:
    Menu:
    Maximizebox:
    StartPosition:
    Size:
    WinForm
    T
    WinForm
    (Icon)
    (none)
    True
    WindowsDefaultLocation
    300,300
    About
    TAbout
    (
    Icon)
    (none)
    False

    CenterScreen
    416,232


    Save this file ...
             On the File menu , click  Save

    The codes  corresponding to the WinForm Form created by system ....     File name - WinForm.pas
     

    unit WinForm;

    interface

    uses
    System.Drawing, System.Collections, System.ComponentModel,
    System.Windows.Forms, System.Data;

    type
    TWinForm = class(System.Windows.Forms.Form)
    {$REGION 'Designer Managed Code'}
    strict private
    /// <summary>
    /// Required designer variable.
    /// </summary>
    Components: System.ComponentModel.Container;
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    procedure InitializeComponent;
    {$ENDREGION}
    strict protected
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    procedure Dispose(Disposing: Boolean); override;
    private
    { Private Declarations }
    public
    constructor Create;
    end;

    [assembly: RuntimeRequiredAttribute(TypeOf(TWinForm))]

    implementation

    {$REGION 'Windows Form Designer generated code'}
    /// <summary>
    /// Required method for Designer support -- do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    procedure TWinForm.InitializeComponent;
    begin
    Self.Components := System.ComponentModel.Container.Create;
    Self.Size := System.Drawing.Size.Create(300, 300);
    Self.Text := 'WinForm';
    end;
    {$ENDREGION}

    procedure TWinForm.Dispose(Disposing: Boolean);
    begin
    if Disposing then
    begin
    if Components <> nil then
    Components.Dispose();
    end;
    inherited Dispose(Disposing);
    end;

    constructor TWinForm.Create;
    begin
    inherited Create;
    //
    // Required for Windows Form Designer support
    //
    InitializeComponent;
    //
    // TODO: Add any constructor code after InitializeComponent call
    //
    end;

    end


 

 The following controls to ...

 

 The codes  corresponding ...


 

 

Previous
  Home
4