may be because this is not assigned

Code:
 Private BoxToUpdate As TextBox