C# windows based application


CSharp.Net-Informations.com
SiteMap

The following program is a sample Windows Based C# application. Create a new C# Windows Application project and copy and paste the following source code.


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

namespace WindowsApplication1
{
	public partial class Form1 : Form
	{
		public Form1()
		{
			InitializeComponent();
		}

		private void button1_Click(object sender, EventArgs e)
		{
			MessageBox.Show("This is my first program");
		}
	}
}

When you execute this C# program you will get the message "This is my first program" in message box.


  • Sponsored Program








More Source Code :
|  Home  |   VB.NET  |   C#  |   ASP.NET  |   SiteMap  |   Terms of Use  |   About  |