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.