Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX object hosting .NET user control

We developed .Net user control using:

Visual Studio 2005 ,

.NET framework 2.0 and

Microsoft Interop Toolkit 2.0.

 

The control is exposed to COM and could be normally used in old Visual Basic 6 projects.

 

When we tried to use this control in Lookouts AcitveX object we got strange visual behavior. The logic of the control is functioning as expected but in Control panel we have two graphics.

One is in background, with coordinates (0,0) - top, left corner and couldn't be selected, moved or resized and the other one is interactive but always on top (above other objects) and couldn't be send to back . Whenever we change something in objects properties this is reflected in the ghost graphics in background after we refresh the Control panel (minimize and maximize window). It looks like the control is first drawn at position 0, 0 in parent window and after that it is drawn at position that we set.

 

We also made a test with empty NET user control that we exposed to COM with the same results.

 

How we could remove the ghost background image of NET control?

Is there anybody with similar problem?

 

Alan Vrana

SCADA Projekt d.o.o.

 

 

Alan Vrana
SCADA Projekt d.o.o.
ZAGREB, Croatia
0 Kudos
Message 1 of 1
(5,056 Views)