Net-informations.com
SiteMap  | About    

C# windows based application

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.




net-informations.com (C) 2017    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.