If you're already passing the TextBox to the function why do you also need to pass the text and the tag? Can't the function read those properties by itself?