|
-
Dec 18th, 2001, 05:09 AM
#1
Thread Starter
Addicted Member
how to add methods to activex control?
Hi guys
I’m developing an activex control and I want to add some methods to it. Any one knows how to do it? Or is it possible?
Thank u very much
-
Dec 18th, 2001, 05:15 AM
#2
Bouncy Member
-
Dec 18th, 2001, 05:18 AM
#3
Bouncy Member
NOTE: "OCX" should really be replaced with "ActiveX Control", which is what you used .
"OCX" is what they used to be called.
-
Dec 18th, 2001, 05:24 AM
#4
Thread Starter
Addicted Member
thanks
and where should i declare these subs? in a module or some event?
-
Dec 18th, 2001, 05:27 AM
#5
Frenzied Member
what i usually do...
WHat i usually do is i just set aside a spot for all the methods of
that usercontrol and just place it there. So in the usercontrol's
code just plop the methods.
Do you need help learning how to do any other stuff with activex
controls such as events, properties, etc?
-
Dec 18th, 2001, 05:32 AM
#6
Thread Starter
Addicted Member
Re: what i usually do...
Originally posted by macai
WHat i usually do is i just set aside a spot for all the methods of
that usercontrol and just place it there. So in the usercontrol's
code just plop the methods.
Do you need help learning how to do any other stuff with activex
controls such as events, properties, etc?
thanks alot my friends i know how to do these, i mean events,properties and stuff. but still i don no what do u mean by a putting aside a spot. do u mean a module or stuff?
-
Dec 18th, 2001, 05:36 AM
#7
Frenzied Member
ill give an example
Ill give a quick example.
VB Code:
'My UserControl
'Ill put properties here
Public Property Get MyProp()
MyProp = "MYPROP!"
End Property
'I'll put methods here
Public Sub MyMethod(Text As String)
MsgBox Text
End Sub
Catch my drift?
-
Dec 18th, 2001, 05:38 AM
#8
Thread Starter
Addicted Member
Re: ill give an example
-
Dec 18th, 2001, 05:43 AM
#9
Frenzied Member
No problem.
No problem, man. If you need more help, you can contact me
AIM: Warlord Luke
ICQ: 127514321
Yahoo! Messenger: macai_wasati_legato
E-Mail: [email protected]
-
Dec 18th, 2001, 06:28 AM
#10
Bouncy Member
try searching in the COM and ActiveX part of the forum, you'll get a lot of answers and useful info there.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|