|
-
Sep 12th, 2001, 11:47 AM
#1
Thread Starter
Hyperactive Member
Buttons on activeX control
I apreciate that this is probably a very basic question - but if I want to design an activeX control that has buttons on it - how can I make the buttons work when the control is used on a form.
at the moment clicking on them doesnt do anything...
-
Sep 13th, 2001, 04:34 AM
#2
-= B u g S l a y e r =-
In the usercontrol code, u raise an event when a button is clicked, then u can put u'r code in that event on the form.
If that does not make sence, please let me know, and i can create a sample for u
-
Sep 13th, 2001, 04:55 AM
#3
Thread Starter
Hyperactive Member
Thanks for that - I'll give it a try
-
Sep 13th, 2001, 05:22 AM
#4
-= B u g S l a y e r =-
ok,
let me know how it goes
-
Sep 13th, 2001, 06:42 AM
#5
Thread Starter
Hyperactive Member
That worked fine - thanks for your help
I am however experiencing another problem with the activex control, in that when I add the ocx to my form and change the properties at design time, they always revert back to the default properties...
any ideas?
-
Sep 13th, 2001, 07:19 AM
#6
-= B u g S l a y e r =-
u have to use property bags in order to save the settings I think.
Tip:
In the add-in manager, load the 'VB6 ActiveX Ctrl Interface Wizard'
Then use this wizard to create a sample ocx. This way u can see how the property bag and the PropertyChanged Method is beeing used.
hope that will help u getting started.
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
|