hi all
I am working on an application where from an ActiveX Control I call a VB form. Once the user has finished working on the form, he closes the form. Now the value entered in the form are previewed in the control.
What I want is that without any event being fired on the control, the user should be able to see the contents of the form, as soon as he closes the form.
I tried doing so using Timer control, and my logic is as follows:
1. When form is loaded start a counter using timer, and is incremented until user closes the form.
2. Using counter as global variable, I make it visible to both, -the form and the control.
3. On the control create another timer, and decrement the global counter. When counter reaches a specific value, display the contents of the form over the control.
My problem:
The counter works fine, till the form is available on the screen. When I implement point 3 in the control, nothing happens.
can anyone help.
Regards
Amit
I am working on an application where from an ActiveX Control I call a VB form. Once the user has finished working on the form, he closes the form. Now the value entered in the form are previewed in the control.
What I want is that without any event being fired on the control, the user should be able to see the contents of the form, as soon as he closes the form.
I tried doing so using Timer control, and my logic is as follows:
1. When form is loaded start a counter using timer, and is incremented until user closes the form.
2. Using counter as global variable, I make it visible to both, -the form and the control.
3. On the control create another timer, and decrement the global counter. When counter reaches a specific value, display the contents of the form over the control.
My problem:
The counter works fine, till the form is available on the screen. When I implement point 3 in the control, nothing happens.
can anyone help.
Regards
Amit