kemaker
Hi,
i want to make a key-maker and i am not know how to make it can u help me to write it .
OR by giving some source code hint.....
Thanks on your kind deed
onlinessp
Junior Poster in Training
80 posts since Apr 2010
Reputation Points: 7
Solved Threads: 0
What exactly do you mean by the word key-maker?
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
i want to make a program which take input a user name an generate a unique code for it.
all this process should be using text box text change
onlinessp
Junior Poster in Training
80 posts since Apr 2010
Reputation Points: 7
Solved Threads: 0
i want to make a program which take input a user name an generate a unique code for it.
all this process should be using text box text change
Use GetHashCode() method.
string s = "Hello";
int code=s.GetHashCode();
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
its not changing with respect to key-press i have tried this code.
Thanks on your reply
onlinessp
Junior Poster in Training
80 posts since Apr 2010
Reputation Points: 7
Solved Threads: 0
Show us your code please.
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
void textBox1_TextChanged(object sender, EventArgs e)
{
textbox2.Text=+Textbox1.Text.ToString();
String provider=textbox2.Text.ToString();
int code=provider.GetHashCode()
}
onlinessp
Junior Poster in Training
80 posts since Apr 2010
Reputation Points: 7
Solved Threads: 0
You don't have to use textbox2.Text.ToString(); use textbox2.Text;
textbox2.Text is already of type String
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
but it's did not effect on the input
onlinessp
Junior Poster in Training
80 posts since Apr 2010
Reputation Points: 7
Solved Threads: 0