Ok, I wrote a class that I use in many projects that is used to encrypt and decrypt strings. I ahve decided to just compile it into a dll and use it like that, but what I was wondering is how do I change the class so that I do not have to call the new function when I dim the object? First of all, is there a way to do this and second, how?
for example right now I use it like so
VB Code:
Dim enc As New Encrypt.StringEncrypt enc.Encrypt("Hello World")
What I would like to do is just write
VB Code:
Dim enc As Encrypt.StringEncrypt enc.Encrypt("Hello World")
Thanks in advance






Reply With Quote