Freelance Writing Jobs | Today's Articles | Sign In

 
Browse Sections

Getting to Know Visual Studio.Net

Apr 17, 2002 - © Jose Aniceto

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

namespace SampleApp1
{
   ///


   /// Summary description for Form1.
   ///

   public class frmMain : System.Windows.Forms.Form
   {
      ///
      /// Required designer variable.
      ///

      private System.ComponentModel.Container components = null;

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

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

      ///
      /// Clean up any resources being used.
      ///

      protected override void Dispose( bool disposing )
      {
         if( disposing )
         {
            if (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()
      {
         //
         // frmMain
         //
         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
         this.ClientSize = new System.Drawing.Size(152, 77);
         this.Name = "frmMain";
         this.Text = "SampleApp";

      }
      #endregion

      ///
      /// The main entry point for the application.
      ///

      [STAThread]
      static void Main()
      {
         Application.Run(new frmMain());
      }
   }
}

In the next article we'll look into some of the Windows controls. We'll see how to populate a control with data and how to respond to user events.

Copyright © 2002 Jose Aniceto
The copyright of the article Getting to Know Visual Studio.Net in C# Programming is owned by Jose Aniceto. Permission to republish Getting to Know Visual Studio.Net in print or online must be granted by the author in writing.

Go To Page: 1 2

Articles in this Topic    Discussions in this Topic