Hi All:
I have two forms. One is main form with a listview and button to open the subform; another one is subform with a listview as well. The subform is modeless. The subform is open and main form is in background. I need to store the item in the subform to the main form. In the subform, I called the main form like this:
frmMain. AddSubFormItemToMainForm
So I can update the items in two forms simultaneously.
The problem is if I run the procedure above, it will bring up the main form to the front. Even the subform sets to Model, I still see the main form flashing in the front.
I tried to keep a global list to add the subform items to main form when unload the subform in order to avoid access the main form inside subform. But it won’t allow me update the list simultaneously, that is, subform has to be closed.
Anyone has a better solution for it? Thank you in advance.
I have two forms. One is main form with a listview and button to open the subform; another one is subform with a listview as well. The subform is modeless. The subform is open and main form is in background. I need to store the item in the subform to the main form. In the subform, I called the main form like this:
frmMain. AddSubFormItemToMainForm
So I can update the items in two forms simultaneously.
The problem is if I run the procedure above, it will bring up the main form to the front. Even the subform sets to Model, I still see the main form flashing in the front.
I tried to keep a global list to add the subform items to main form when unload the subform in order to avoid access the main form inside subform. But it won’t allow me update the list simultaneously, that is, subform has to be closed.
Anyone has a better solution for it? Thank you in advance.