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 sender, EventArgs e)
{
if (txtPassword.Text == "YOURPASSWORD")
{
MessageBox.Show("Access granted!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Access denied!", "Denied", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
}
Results 1 to 1 of 1
Thread: [Visual C#] Password Protection
- 16 Dec. 2009 03:08am #1
[Visual C#] Password Protection