home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2003 January / PCpro_2003_01.ISO / born / IDE / DotNET-IDE / Templates / Form.cs < prev    next >
Encoding:
Text File  |  2002-08-21  |  644 b   |  30 lines

  1. //************************************************
  2. // File:  Form.cs  (21-Aug-2002)
  3. // Author: G. Born www.borncity.de
  4. //
  5. // Empty MainClass, creates an empty form
  6. //
  7. // Compile with:
  8. // clc /t:Winexe <name>.vbs /Win32Icon:<name>.ico
  9. // /r:system.dll /r:system.windows.forms.dll 
  10. // /r:system.drawing.dll
  11. //************************************************
  12.  
  13. using System;
  14. using System.Windows.Forms;
  15.  
  16. class MyForm : Form
  17. {
  18.     public MyForm()
  19.     {
  20.         Text = "This is my form";
  21.                 Width = 250;
  22.                 Height = 150;
  23.     }
  24.     
  25.     public static void Main(string[] args)
  26.     {
  27.         Application.Run(new MyForm());
  28.     }
  29. }
  30.