473,395 Members | 1,495 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.

OCX Control in VB.Net Missing Methods

A 3rd party OCX that I am using in a VB.NET app is missing several
properties and methods in Intellisense. I know they are missing because I
have the complete API reference for the OCX, and if I use the same OCX in a
VB6 standard EXE, the items I want show up. If I try to add them anyway, I
get precompiler errors.

I can only guess at a problem with Automation... Are there any general
reasons why a control's interfaces will show up incomplete?

--
Elliot M. Rodriguez, MCSD

My .Net blog, with tips here and there:
http://derivedclass.europe.webmatrixhosting.net
Nov 20 '05 #1
3 1660
Does the control utilize multiple interfaces? If so, to use the members on
the other interfaces, you'll have to either Dim the control as the other
interface or use the CType function to gain access to the other methods.

HTH

"Elliot M. Rodriguez" <noemail> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
A 3rd party OCX that I am using in a VB.NET app is missing several
properties and methods in Intellisense. I know they are missing because I
have the complete API reference for the OCX, and if I use the same OCX in a VB6 standard EXE, the items I want show up. If I try to add them anyway, I
get precompiler errors.

I can only guess at a problem with Automation... Are there any general
reasons why a control's interfaces will show up incomplete?

--
Elliot M. Rodriguez, MCSD

My .Net blog, with tips here and there:
http://derivedclass.europe.webmatrixhosting.net

Nov 20 '05 #2
Jeff:

Thank you for the reply. The control doesnt implement any other interfaces.
Thats what makes this so damn confusing.

--
Elliot M. Rodriguez, MCSD

My .Net blog, with tips here and there:
http://derivedclass.europe.webmatrixhosting.net

"Jeff Molby" <JeffMolby@C_mc_st.n_t> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Does the control utilize multiple interfaces? If so, to use the members on
the other interfaces, you'll have to either Dim the control as the other
interface or use the CType function to gain access to the other methods.

HTH

"Elliot M. Rodriguez" <noemail> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
A 3rd party OCX that I am using in a VB.NET app is missing several
properties and methods in Intellisense. I know they are missing because I have the complete API reference for the OCX, and if I use the same OCX in
a
VB6 standard EXE, the items I want show up. If I try to add them anyway,

I get precompiler errors.

I can only guess at a problem with Automation... Are there any general
reasons why a control's interfaces will show up incomplete?

--
Elliot M. Rodriguez, MCSD

My .Net blog, with tips here and there:
http://derivedclass.europe.webmatrixhosting.net


Nov 20 '05 #3
Hi,

The control has various Procedure Attributes (see the Tools/Procedure
Attributes dialog in VB6 when developing an ActiveX control).

There is a Hidden attribute that will hide it from Intellisense, and if this
attribute is not set, it still may be "Don't show in the Property Browser."
If either of these are used, then Intellisense will not display it.

Now, I don't know if this explains the behavior that you are seeing (I
suspect it is the second thing above) -- and there also may be a "funny" in
..NET (I have trouble with Intellisense with some native .NET controls,
too!).

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Miguel Guerreiro | last post by:
I have an ActiveX Control that I am trying to make work from an ASP page, but so far all I got is great frustation! My Control is well registered (and working fine from a VB stand-alone program I...
9
by: hzgt9b | last post by:
I am using a web browser control to display some PPT slides saved as HTML. My client has recently asked that the background of the browser be changed to sonething other than white so that the...
1
by: Spurry Moses | last post by:
Hi, I'm converting a project from C++Builder to C# and I just need to copy my class design across. It's looking good so far. To stick with the design I want to inherit from a ComboBox control...
1
by: None | last post by:
Hello In order to host and use an ActiveX control (non-GUI) in a WTL app, I followed the following steps: 1. During project creation, the ActiveX Hosting option is enabled. 2. In the dialog...
2
by: paul meaney | last post by:
All, myself and another developer have been staring blankly at a screen for the past 48 hours and are wondering just what stunningly obvious thing we are missing. We are trying to load up 2...
2
by: DocAccolade | last post by:
I am trying to include a legacy com control (controlname.ocx) in an asp.net application using vs 2003. I have added the control to the user control tool box, then dragged it to the form. However,...
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
1
by: Owen Blacker | last post by:
I've spent loads of time Googling to try to work this one out and I'm sure it's something obvious. I get an InvalidOperationException reading "Databinding methods such as Eval(), XPath(), and...
7
by: adiel_g | last post by:
Hello Everyone, I created a custom control. On the CreateChildControls, I added a textbox to the control as follows: // TextBox TextBox txtValue = new TextBox(); txtValue.ID = "txtValue"; ...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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
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,...
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
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.