Solved

Need a reference to the Extender object

Posted on 2002-03-28
3
155 Views
Last Modified: 2010-05-02
This should be easy for a VB person, but I'm not.  I'm a FoxPro person using VB for creating an activex control.  I am going through the VB example for creating an ActiveX control.  In the 'Saving the ShapeLabel Control's Property Values" exampel, the user puts the code "Caption = Extender.Name" in the WriteProperties method. When I try this, I have no intellisense and control doesn't work at the conclusion of the example.  What's up?
0
Comment
Question by:vfper
3 Comments
 
LVL 22

Accepted Solution

by:
rspahitz earned 50 total points
ID: 6903111
What's up is something called late binding.

Since the Extender is object depends on where the control appears at (its) run-time, there is no way for the design mode to know who the container is.  As such, the extender object is a generic object reference which doesn't know the container's exposed properties and methods, so the Intellisense cannot show it.

One way to get around that in the design mode is to use a valid container reference to get the intellisense, then later change the reference to "Extender."  Also, make sure to include error-trapping since it's possible that the container may change (since it's user-controlled, not designer controlled) and may eventually end up in a container that does not support the Extender property/method you're referencing.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7637942
Hi vfper,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept rspahitz's comment(s) as an answer.

vfper, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7754853
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vba find the last empty column 10 88
VBA open file from excel cell 4 36
Updates not working for MS Windows 7 12 152
TT Auto Dashboard 13 82
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now