By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,724 Members | 859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,724 IT Pros & Developers. It's quick & easy.

Intellisense and ActiveX Controls

P: n/a
I am trying to familiarize myself with a new ActiveX control. If I
place the control on the form and then reference it via code, the
Intellisense does not work. However, if I explicitly declare the
control in code, then the Intellisense works.

The name of the control on the form is dbGrid1. Why can't I do
something like the following?

Dim dbGrid1Other as AnotherActiveXControl
set dbGrid1Other = dbGrid1
dbGrid1Other.someProperties = xyz

In other words, why can't I explicitly declare a reference as the same
type of the control on the form to utilize the Intellisense? If I try
to set dbGrid1Other = dbGrid1, the compiler complains that this is a
type mismatch. Is there any way to capture the reference to dbGrid1
to accomplish what I am trying to do? Or is there a completely easier
way to accomplish this? Thanks.


Aug 25 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.