ALX
Well-known member
In several of my forms I have a user control that is a panel containing 6 textboxes. In the "Validating" event handler for the textboxes, I want to return control, briefly, to the parent form to update some charts, etc. In the user control, I get a reference to the parent form by using
So far, I've only been able to use
to briefly return control to the parent form. I'd like to avoid that since it causes a complete repainting of the parent form (flickering with each entry in the textboxes), and I really only need to update a few items on the parent form.
I have tried "Activecontrol = Frm" (which plays havoc with the rest of my textbox code);
"Frm.Activate" (which does nothing);
"Frm.Focus" (which might be working ??? until the OS switches focus to the next textbox);
...Can anyone steer me in the right direction... Thanx !
VB.NET:
Dim Frm As Form = Me.FindForm
VB.NET:
Frm.Invalidate
I have tried "Activecontrol = Frm" (which plays havoc with the rest of my textbox code);
"Frm.Activate" (which does nothing);
"Frm.Focus" (which might be working ??? until the OS switches focus to the next textbox);
...Can anyone steer me in the right direction... Thanx !