第一个程序,采用MessageBox.Show显示小对话框:

/*
 * Created by SharpDevelop.
 * User: feisky
 * Date: 2009-10-27
 * Time: 10:46
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
  13:  
namespace test
  15: {
/// <summary>
/// Description of MainForm.
/// </summary>
class MainForm : Form
  20:     {
public MainForm()
  22:         {
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
  26:             InitializeComponent();
  27:             
//
// TODO: Add constructor code after the InitializeComponent() call.
//
  31:         }
  32:         
object sender, EventArgs e)
  34:         {
);
  36:         }
  37:     }
  38: }

相关文章: