471,348 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

"UserControl.Parent" call in VB6 ctrl fails when added a .Net Form

An ActiveX control has a call to "UserControl.Parent" which
fails when it is interopped and added to a .Net Form.

Is there any way to access to .Net parent control/it's interfaces
from VB6 ActiveX Control.

Jul 21 '05 #1
2 2664

I never used it. I saw it an hour ago from a message from Herfried in the
newgroup language.vb

If you are using VS.NET (or VB.NET Standard), right-click the toolbox,
choose "Add/remove items..." -> "COM Controls" -> "Browse...". Select the
OCX component. VS.NET will create the interop assemblies automatically

I hope this helps a little bit?

Jul 21 '05 #2
Thanks but the question was, even after creating interop etc., if the ActiveX
control has a line like "UserControl.Parent.MyMethod()", it will fail when
the client is in .Net (and even if it contains MyMethod()).

It is not about interops but specifically about "UserControl.Parent" in VB6
when they are interopped.

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Chau Bui | last post: by
reply views Thread by Ray Schumacher | last post: by
2 posts views Thread by =?iso-8859-1?B?QW5kcuk=?= | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.