473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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.

Thanks,
BalG
Jul 21 '05 #1
2 2768
Balg,

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?

Cor
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chau Bui | last post by:
Hi All, For UserControl, how can we catch event "Close UserControl". I need a help on this! Many Thanks. Chau
4
by: nicver | last post by:
I am fixing a client's Web site and I do not have the time to reprogram things my way, and the last hurdle I have is with a piece of javascript embedded in an ASP snippet. The payment form is...
2
by: Bill C | last post by:
I've tried to google an explanation, but can't find one: I'm obviously don't know dhtml, but need to clean up a misbehaving line of code in a CGI. Does the "0" value of "parent.frames"...
8
by: John E Katich | last post by:
When attempt to use the Event Wizard I get the following error message: "Add/Remove of the function impossible, because the parent class code is read only" The Project was convert from VC 6.0....
2
by: balg | last post by:
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...
0
by: Ray Schumacher | last post by:
Thanks Larry, My depth really only gets to ~3: package module module error_module and usually not that. It is shallow, with >hundred methods (mainly serial protocol defs for LX*...
2
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I want to give a user the possibility of "restarting" an interactive session, by removing all the objects defined by her since the beginning. The way I make this possible is by having a "function"...
1
by: Bob | last post by:
Hello folks! I have a form and when users fill in the form they normally fill in a simple text box. But when they can add several items...such as people on a project, I use a pop up form and...
3
by: eBob.com | last post by:
How does a "sub-form", i.e. one invoked by another form, determine anything about the form which brought it into existence, i.e., I suppose, instantiated it? I wanted to so something like this ......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.