God I got really bored and decided that I haven't messed around in C# for a bit that I'd make something really simple. This is not recommended.
Also to show some other programmers that if they wanted to move onto visual C# what it would look like a little.

PHP Code:
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 
PasswordProtectoin
{
    public 
partial class frmMain Form
    
{
        public 
frmMain()
        {
            
InitializeComponent();
        }

        private 
void frmMain_Load(object senderEventArgs e)
        {

            if (
txtPassword.Text == "YOURPASSWORD")
            {
                
MessageBox.Show("Access granted!""Success"MessageBoxButtons.OKMessageBoxIcon.Information);
            }
            else
            {
                
MessageBox.Show("Access denied!""Denied"MessageBoxButtons.OKMessageBoxIcon.Information);
            }
        }
    }