Set the text box to various read and write states