Ciao, vorrei creare un form , in cui gli utenti prima di aprire il programma si devo autenticare, sono riuscito a creare il form e a nascondere i caratteri:
codice:
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)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
textBox1.PasswordChar = '@';
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
textBox2.PasswordChar = '#';
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
Però ora vorrei sapere come fare per inserire la protezione password.Grazie.