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

How to use the method in the .OCX file

P: n/a
I have a problem about import .ocx file
When i add the ocx file in the reference, i can see the method..

http://www.groupx.net/yindevil/cm11.gif

but when i try to call the ocx file..

cm11a.controlcmClass.

It only let me choose "Equal" and "ReferenceEqual".
How can i choose the upper method? eg: ClearMem(), Exec()...
Can someone help me plz....

I attached the .ocx file.
http://www.groupx.net/yindevil/CSA_work/CM11A.ocx
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
There's no way I'm going to download an OCX, but in your code below you're
referring to the type imported from the OCX's type library. You need to
actually create an instance of the object before accessing its methods.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"yindevil" <yi******@groupx.net> wrote in message
news:c4**************************@posting.google.c om...
I have a problem about import .ocx file
When i add the ocx file in the reference, i can see the method..

http://www.groupx.net/yindevil/cm11.gif

but when i try to call the ocx file..

cm11a.controlcmClass.

It only let me choose "Equal" and "ReferenceEqual".
How can i choose the upper method? eg: ClearMem(), Exec()...
Can someone help me plz....

I attached the .ocx file.
http://www.groupx.net/yindevil/CSA_work/CM11A.ocx

Nov 15 '05 #2

P: n/a
Can you give me a example how to "create an instance of the object
before accessing its methods" ??

THX..
"Klaus H. Probst" <us*******@vbbox.com> wrote in message news:<uv**************@TK2MSFTNGP12.phx.gbl>...
There's no way I'm going to download an OCX, but in your code below you're
referring to the type imported from the OCX's type library. You need to
actually create an instance of the object before accessing its methods.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"yindevil" <yi******@groupx.net> wrote in message
news:c4**************************@posting.google.c om...
I have a problem about import .ocx file
When i add the ocx file in the reference, i can see the method..

http://www.groupx.net/yindevil/cm11.gif

but when i try to call the ocx file..

cm11a.controlcmClass.

It only let me choose "Equal" and "ReferenceEqual".
How can i choose the upper method? eg: ClearMem(), Exec()...
Can someone help me plz....

I attached the .ocx file.
http://www.groupx.net/yindevil/CSA_work/CM11A.ocx

Nov 15 '05 #3

P: n/a
Well it's an OCX, do you place it in a form? When the form loads, an
instance is created. Otherwise use 'new' to create one.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"yindevil" <yi******@groupx.net> wrote in message
news:c4*************************@posting.google.co m...
Can you give me a example how to "create an instance of the object
before accessing its methods" ??

THX..
"Klaus H. Probst" <us*******@vbbox.com> wrote in message

news:<uv**************@TK2MSFTNGP12.phx.gbl>...
There's no way I'm going to download an OCX, but in your code below you're referring to the type imported from the OCX's type library. You need to
actually create an instance of the object before accessing its methods.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"yindevil" <yi******@groupx.net> wrote in message
news:c4**************************@posting.google.c om...
I have a problem about import .ocx file
When i add the ocx file in the reference, i can see the method..

http://www.groupx.net/yindevil/cm11.gif

but when i try to call the ocx file..

cm11a.controlcmClass.

It only let me choose "Equal" and "ReferenceEqual".
How can i choose the upper method? eg: ClearMem(), Exec()...
Can someone help me plz....

I attached the .ocx file.
http://www.groupx.net/yindevil/CSA_work/CM11A.ocx

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.