S
susendy1
Hi Everyone,
I am very new to C# and I am starting to create little things here and there. I was recently given a little project at work to create a random password application. In addition I need to create a log of the application to record the password that its been generated by the application to include of course the six digits password as well as the date and maybe the person who generated.
I would like within the same application to create a button to show me a log of the application activity. Please if anyone has an idea of how I can achieve this it would be greatly appreciated.
the C# code for the random password generator is as followed:
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Windows.Forms;
namespaceRandomPassGenerator
{
publicpartialclassForm1: Form
{
publicForm1()
{
InitializeComponent();
}
privatevoidbutton1_Click(objectsender, EventArgse)
{
Randomr = newRandom();
MessageBox.Show(r.Next(100000, 1000000).ToString());
}
}
}
Continue reading...
I am very new to C# and I am starting to create little things here and there. I was recently given a little project at work to create a random password application. In addition I need to create a log of the application to record the password that its been generated by the application to include of course the six digits password as well as the date and maybe the person who generated.
I would like within the same application to create a button to show me a log of the application activity. Please if anyone has an idea of how I can achieve this it would be greatly appreciated.
the C# code for the random password generator is as followed:
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Windows.Forms;
namespaceRandomPassGenerator
{
publicpartialclassForm1: Form
{
publicForm1()
{
InitializeComponent();
}
privatevoidbutton1_Click(objectsender, EventArgse)
{
Randomr = newRandom();
MessageBox.Show(r.Next(100000, 1000000).ToString());
}
}
}
Continue reading...