Results 1 to 3 of 3

Thread: Exit an ActiveX Control

  1. #1
    Guest
    I have created an ActiveX Control that I am using in PowerPoint.

    When I have the control on more than one slide the previous instance of the control is interferring with the next one. I want to be able to release the control and reinstanciate it when I go from Slide to Slide.

    I'll be able to know when the slides are changing cause the UserMode will go from False to True to False. As the slide is loaded, then unloaded.

    I've tried using Unload, but you can't Unload the UserControl Object. End Statements aren't allowed in ActiveX controls.

    Can anyone help?

  2. #2
    Guest

    Question Don't have code in front of me...but

    Sounds like the control still exists in your vertial memory. Try something like on unload

    Set ActiveX to Null...Don't have vb on this PC but should give you the general idea.

  3. #3
    Guest

    More info?

    Well I've tried calling Unload. but you can't call Unload on your UserControl.

    I've tried setting the object in the control to null... is there a way to purge the memory of the instances your control creates?

    My control has more than one control on it. and it's one of these controls that only allows one instance of it on the system at a time. because of this it seems that you can't get another instance of the object without first getting rid of the first one.

    So is there a way to simply terminate the entire control so it will let go of this object?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width