Problems with ActiveX usage in C# usercontrol

B

BestNews

OS: XP

..Net= framework = 1.0.3705

VS.Net IDE = 7.0.9466

1. I used an ActiveX control in C# client Application[has dll]. After
executing Aximp of ActiveX control. I derived a class [DerivedGrid] from the
AxHost[wrapper for ActiveX].

This DerivedGrid class is hosted on a usercontrol[Tv class] which is inturn
hosted on another UserControl[Idc]. In turn this Idc is hosted on a Form.

Now the problem is: If the DerivedGrid class object is created and the Idc
is hidden[Visiblity=false], then the WM_VISIBLE style of ActiveX control
gets removed internally

[when? no idea]. Can anybody help me out why this happens.



2. I used a work around for the above problem by resetting WM_VISIBLE style
in ActiveX control[temporarly]. This has resulted into another problem. Now
the other problem is when I create 'n' numbers of DerivedGrid object and
place them sequentially cross the viewing area and also I enable the
AutoScroll on Tv class for viewing all the grids. Then Scroll few pixels in
both horizontal and vertical direction and Click one of the DerivedGrid
object , the DerivedGrid object gets clipped. This is a strange behaviour.

Regards

SK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top