C#
  Home arrow C# arrow Page 2 - C# Simplified, part 6: Working with Window...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C#

C# Simplified, part 6: Working with Windows Applications
By: Anand Narayanaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 20
    2005-06-07

    Table of Contents:
  • C# Simplified, part 6: Working with Windows Applications
  • My first WinForm application
  • Code Analysis
  • Working with WinForm controls using Visual Studio .NET

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    C# Simplified, part 6: Working with Windows Applications - My first WinForm application


    (Page 2 of 4 )

    In this section, you will learn how to develop a classic "HelloWorld" Windows application. Enter the code given in listing 6.1 using Notepad:

    Listing 6.1

    HelloWorldWin1.cs

    001: // HelloWorldWin1.cs

    002: // -----------------

    003: using System;

    004: using System.Windows.Forms;

    005:

    006: public class HelloWorldWin1:Form

    007: {

    008:

    009: public HelloWorldWin1()

    010: {

    011: // Add your additional code(s) here

    012: }

    013:

    014: public static void Main()

    015: {

    016: Application.Run(new HelloWorldWin1());

    017: }

    018: }

    Save the file with the name HelloWorldWin1.cs and compile the program as shown below.

    Compilation

    csc HelloWorldWin1.cs

    Execution

    HelloWorldWin1

    Output

    Figure 6.1

    From the above output you can infer that the code produces a blank form with Minimize, Maximize and Close buttons.

    More C# Articles
    More By Anand Narayanaswamy


     

    C# ARTICLES

    - C# and XML
    - Pointers and Arrays in C#
    - C# 3.0 Extension Methods
    - Overloading Operators in C#
    - Iterators and Nullable Types
    - Patterns and Iterators in C#
    - C# Exceptions
    - Methods in C#
    - Delegates and Events in C#
    - Advanced C#
    - Working with Regular Expressions in C#
    - Sending Simple E-Mail in C#
    - Building C# Comparable Objects: IComparable ...
    - Color Transformation Applications in C# GDI+...
    - Performing Color Transformation Operations i...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT