I have a while loop, that I want my program to run through while a user has a form active. right now I have tried both,
While frmLineProduct.ActiveForm.Focus = True
While (frmLineProduct.ActiveForm.Equals(True))
But neither of these work. I am going to keep reading on this but if someone has already knows how to do this, I would appreciate the lesson.
The answer ended up being a method that I hadn’t heard of before, but someone in one of my other posts led me onto it.
Control.Invoke Method (Delegate, Object())
To anyone who is interested the answer can be found here