Simple form : Form Frame Window « GUI Windows Form « C# / C Sharp

C# / C Sharp
1. 2D Graphics
2. Collections Data Structure
3. Components
4. Database ADO.net
5. Development Class
6. Event
7. File Stream
8. GUI Windows Form
9. Language Basics
10. Network
11. Office
12. Regular Expressions
13. Services Event
14. Thread
15. Web Services
16. Windows
17. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
C# / C Sharp » GUI Windows Form » Form Frame WindowScreenshots 
Simple form
Simple form

/*
C# Programming Tips & Techniques
by Charles Wright, Kris Jamsa

Publisher: Osborne/McGraw-Hill (December 28, 2001)
ISBN: 0072193794
*/

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace FormSample
{
  /// <summary>
  /// Summary description for Form1.
  /// </summary>
  public class FormSample : System.Windows.Forms.Form
  {
    /// <summary>
    /// Required designer variable.
    /// </summary>
    private System.ComponentModel.Container components = null;

    public FormSample()
    {
      //
      // Required for Windows Form Designer support
      //
      InitializeComponent();

      //
      // TODO: Add any constructor code after InitializeComponent call
      //
    }

    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    protected override void Disposebool disposing )
    {
      ifdisposing )
      {
        if (components != null
        {
          components.Dispose();
        }
      }
      base.Disposedisposing );
    }

    #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>
    private void InitializeComponent()
    {
      // 
      // FormSample
      // 
      this.AutoScaleBaseSize = new System.Drawing.Size(513);
      this.ClientSize = new System.Drawing.Size(292273);
      this.Name = "Form1";
      this.Text = "Form1";

    }
    #endregion

    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main() 
    {
      Application.Run(new FormSample());
    }
  }
}


           
       
Related examples in the same category
1. Form hideForm hide
2. Change Form window ownershipChange Form window ownership
3. Create Graphics Object from form window handleCreate Graphics Object from form window handle
4. Center form windowCenter form window
5. Assign Form window default valueAssign Form window default value
6. Change the background and text colors of a form using Color DialogChange the background and text colors of a form using Color Dialog
7. Draw image based on the window sizeDraw image based on the window size
8. Auto scroll form windowAuto scroll form window
9. Set Form window title and center the Form window on the desktopSet Form window title and center the Form window on the desktop
10. Add control to a form windowAdd control to a form window
11. Change Form window backgroundChange Form window background
12. Simplest form code: set window titleSimplest form code: set window title
13. Login fromLogin from
14. makes a new window out of a graphics path that has been traced on this forms spacemakes a new window out of a graphics path that has been traced on this forms space
15. Windows Forms Getting StartedWindows Forms Getting Started
16. A form-based Windows SkeletonA form-based Windows Skeleton
17. Add controls to a formAdd controls to a form
18. Form for data inputForm for data input
19. Demonstrates creating a form in a console programDemonstrates creating a form in a console program
www__._jav_a2s__._c__o__m___ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.