-
ActiveX Custom Control
I created a Control to custom display and format phone numbers to my liking.
On the control are two textboxs:
1) txtPhoneNumberDisplay - For formatted display of the phone number eg. (818) 555-1212
2) txtPhoneNumber - A Data bound textbox to contain only the numeric data. eg. 8185551212
My goal is to be able to put the custom control on my form, and to be able to specify the DataSource, and DataField to bind to in design mode. I can get the DataSource with no problem, but I cannot get the DataField to appear as an extender object. I reference the Microsoft Data Source Interfaces Type Lib so that it knows what a type DataSource is. Any suggestions??? Yes, I know its like the masked edit box, but I need it to be custom :)
Thanks!
-gary
-
...
on the activeX's properties mark it as a dataconsumer i.e. true
vb does the rest I belive you may need to superclass the dataconsumer propties of the textboxes i.e. expose them as part of the activeX