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.
Vincent
Tom van Stiphout - 29 Aug 2007 03:03 GMT
Have you tried setting a reference to that control? Code window >
Tools > References. Browse, if you have to.
-Tom.
>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
[quoted text clipped - 16 lines]
>
>Vincent
Vincent - 31 Aug 2007 23:40 GMT
> Have you tried setting a reference to that control? Code window >
> Tools > References. Browse, if you have to.
[quoted text clipped - 21 lines]
>
> >Vincent
Tom,
Yes. I did set a reference to the control, but this appears to
have done nothing in regards to the intellisense. I find this
unusual.
Vincent