Are you talking about angry music, or do you mean an algorithm? An algorithm is just a method of performing some calculation, so you need to implement it yourself in code. That means you would pass the Text property of the TextBox to a function you have written that implements the algorithm and then write the result to the registry. I KNOW you know how to write to the registry, right?