C# allows us to write programs like Windows Based Applications as well as Console Bases Applications . The following links give you a basic idea of Console Based Application and Windows Based Application.
Windows Based applications
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.
So if you double click on the create button you will go to the coding window
So if you double click on the create button you will go to the coding window
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void
button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Thank
you for visiting Luckycoders.\n Please spread good news about this link");
}
}
}
Now if Run you will be able to see the output below
Console based application