I took a .vb file and imported it into my project which is supposed to encrypt and decrypt a users password. I am trying to call this from my main form inside a button and I am having trouble with it.

I have a function in there that I need to call and take the input from textbox1 and then either encrypt it or decrypt it and display that in textbox 2 but I can't figure out how to do that.

Here is what I'm doing now...

TextBox2.Text = TextBox1.Text(Namespace.Function)

That is not working so that can't be it. I did this once before and it worked but I can't remember how I did it.

Any advice guys?