Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8311119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:42:22+00:00 2026-06-08T19:42:22+00:00

I have a third party ActiveX control that I am embedding in a form.

  • 0

I have a third party ActiveX control that I am embedding in a form. The control’s class implements IDisposable. My question is should I manually call the control’s dispose method either in the form closing event or go into the designer and edit the form dispose method to call the control’s dispose.

I understand that a form calls the dispose methods of all the controls it owns, however are there any exceptions since this is a COM control. Thanks.

PS: I am using Visual Studio 2008, .Net 3.5, Project Type: Windows Forms Application

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:42:25+00:00Added an answer on June 8, 2026 at 7:42 pm

    No, there is nothing special you have to do.

    Because the Control class (from which other container controls such as Form inherit from) implements the IDisposable interface, it should (if it follows the standard IDisposable implementation guidelines) dispose of any references that it holds that implement the IDisposable interface.

    That said, your control, assuming that it is in the controls collection exposed by the Controls property, will have it’s IDisposable.Dispose method called when the window containing it is closed (as closing the window causes the window’s Dispose method to be called).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Windows Forms application that uses a (third party) ActiveX control, and
I have an MFC application that uses an ancient (circa 1999) third-party ActiveX control.
I have some third party library Foo with class FooBar . I think that
I have a third party control that utilizes a single hidden input field to
I have a third party application that allows you to call C functions from
I have a third party library that internally constructs and uses the SqlConnection class.
I have a bit of a problem here. I have a third party ActiveX
I have to maintain an old VB 6 ActiveX DLL called by another third-party
I have third-party C code that writes data to a file. I want to
I have third party sites that link to some images on my site. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.