?
Solved

Need a reference to the Extender object

Posted on 2002-03-28
3
Medium Priority
?
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Accepted Solution

by:
rspahitz earned 200 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

770 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