开发者

Adding an ActiveX control to a tab Page

开发者 https://www.devze.com 2023-01-02 00:40 出处:网络
This is the code I am using: tabPage1.Controls.Add(AXViewer1); where AXViewer1 is a third party ActiveX control (non .NET) that I want to add to my开发者_JAVA技巧 tab page.

This is the code I am using:

tabPage1.Controls.Add(AXViewer1);

where AXViewer1 is a third party ActiveX control (non .NET) that I want to add to my开发者_JAVA技巧 tab page.

Is it wrong to do it the way I did, since it has not added it to the tab page with that code?


Your ActiveX control probably cannot be reparented at runtime.

You need to create a new instance of the class at runtime by writing new AXViewer().


Try setting the Visible property to True. Also try calling the CreateHandle method.

If none of this works, you are best off contacting the developer of the ActiveX control for support.

0

精彩评论

暂无评论...
验证码 换一张
取 消