Code:
result = coder.DecodeStringToByteArray(TextInput.Text)
Don't forget the paranthesis. In VB if I remember right you only omit them if you don't assign the return value to anything.