Your first Windows Forms program PDF Print E-mail

Our first Windows Form program will display a standard windows. The simplest such program is probably close to:

  1.  
  2. using System;
  3. using System.Windows.Forms;
  4. class FirstProg : Form {
  5. public static void Main() {
  6. Application.Run( new FirstProg() );
  7. }
  8. }
 


We start by writing statements to use the System and System.Windows.Forms namespace in order to save some typing.

Then we derive a class from System.Windows.Forms and we use the static method Application.Run passing an object of our class.




Bookmark it...
Digg!Reddit!Del.icio.us!Google!Facebook!Slashdot!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!
 
Next >
Joomla Template by Joomlashack
Joomla Templates by JoomlaShack Joomla Templates by Compass Design