Problem when unloading forms containing TChart control
Posted: Tue Jul 08, 2008 2:32 am
Hi,
We are currently experiencing some problems when unloading forms that contain TChart controls. We are using TChart in a VB6 environment and we have done nothing in the code other than replace the v6 TChart object with the v8 TChart control object.
Specifically, we have 2 forms loaded (FormA and FormB) each of which contains a TChart control.
FormA has a Form_Unload event which unloads FormB:
...
...
Private Sub Form_Unload(Cancel As Integer)
Unload FormB
End Sub
...
...
If FormB has the focus and we close FormA (by clicking the default Close button at the top right of FormA), FormA's Form_Activate event is triggered during FormA's Form_Unload event.
Previous to upgrading to the v8 TChart control, FormA's Form_Activate event was not triggered for the scenario described above. This has been observed with both TeeChart8.ocx and TeeChart8Langs.ocx
Any assistance would be greatly appreciated.
Thanks,
Ross
We are currently experiencing some problems when unloading forms that contain TChart controls. We are using TChart in a VB6 environment and we have done nothing in the code other than replace the v6 TChart object with the v8 TChart control object.
Specifically, we have 2 forms loaded (FormA and FormB) each of which contains a TChart control.
FormA has a Form_Unload event which unloads FormB:
...
...
Private Sub Form_Unload(Cancel As Integer)
Unload FormB
End Sub
...
...
If FormB has the focus and we close FormA (by clicking the default Close button at the top right of FormA), FormA's Form_Activate event is triggered during FormA's Form_Unload event.
Previous to upgrading to the v8 TChart control, FormA's Form_Activate event was not triggered for the scenario described above. This has been observed with both TeeChart8.ocx and TeeChart8Langs.ocx
Any assistance would be greatly appreciated.
Thanks,
Ross