Add a function to TextBox to make it read-only