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...
Printable View
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...
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 :)
Thanks for that - I'll give it a try
ok,
let me know how it goes :)
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?
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. :)