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

  • Home
  • SEARCH
  • 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 994381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:34:01+00:00 2026-05-16T06:34:01+00:00

I need to use activeX to create a plugin for a legacy application. I’m

  • 0

I need to use activeX to create a plugin for a legacy application. I’m using C# so that i can share the codebase of several related stand alone products.

When I host the control in the SDK’s test container (TstCon32.exe) everything works fine. The problem is that when I try to load it in the target application the first time I click on the control everything except the item I clicked on (textbox or datagrid cell) is painted over with control grey, if I change the background color of the control to something else the background stays the same color I specified but all the controls are still covered over with control grey (from the container app?). Clicking on additional controls will cause them to paint, resizing the control will cause everything to repaint. After the initial blanking the control functions normally until the next time a copy is created.

  • 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-05-16T06:34:02+00:00Added an answer on May 16, 2026 at 6:34 am

    I finally found a solution. The first part was to change my targeted framework from 4.0 to a prior version. This revealed an exception thta was occuring when the control was blanked that was previously being consumed and hidden from me:

    System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
       at System.Windows.Forms.UnsafeNativeMethods.IOleInPlaceSite.OnUIActivate()
       at System.Windows.Forms.Control.ActiveXImpl.InPlaceActivate(Int32 verb)
       at System.Windows.Forms.Control.ActiveXImpl.OnFocus(Boolean focus)
       at System.Windows.Forms.Control.ChildGotFocus(Control child)
       at System.Windows.Forms.Control.OnGotFocus(EventArgs e)
       at System.Windows.Forms.Control.WmSetFocus(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    

    From there I was able to find a post by tomasvdb who encountered the same problem I had with the Google Sidebar.

    One of the replies to that post linked to this message which provided a workaround for a bug where the sidebar application was sending invalid data to the .net control.

    Calling that workaround method in the Control’s VisibleChanged event handler solved my problem as well.

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

Sidebar

Related Questions

I need to use the objdump and readelf commands in my application that runs
I'm experimenting with writing ActiveX controls and noticed that I can't seem to create
I need to create a web-controlled application (that lives in the browser ) that
I need to create a web application that prints checks. Because of the nature
So, I need use this event so I can navigate trought blog posts. I
Need to use own imaged markers instead built-in pins. I have several questions. 1.
I've developed a Webbapp that makes an extensive use of threads. We need to
We have a Windows Forms application that uses a (third party) ActiveX control, and
I need to replace an ActiveX control with a new one for use in
I have a PHP/5.2 driven application that uses transactions under MySQL/5.1 so it can

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.