473,387 Members | 1,486 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,387 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 2767
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.