Don't use the object: ActiveForm unless you check it for null each time you do.
This object is in my opinion flawed and not all that useful since it becomes
null when the form loses focus. I am posting this warning lest you too fall
into the trap of using the ActiveForm.refresh() method instead of the
tnis.refresh(); method.
They are not the same and you may or maynot find your program crashing
because you did not first check each time you call the refresh method
associated with the object again try not to use ActiveForm object and instead
use the this object of the form or the actual form itself.
I think this is a bad design for ActiveForm object. Bottom line is do not
use it unless you are absolutely forced to. Instead use the this.object
Here is the original error message I ultimately solved:
System.NullReferenceException: Object reference not set to an instance of an
object