Solved

Need a reference to the Extender object

Posted on 2002-03-28
3
152 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

747 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

13 Experts available now in Live!

Get 1:1 Help Now