Results 1 to 2 of 2

Thread: ActiveX Controls

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    ActiveX Controls

    Hey,

    I have a activex control with a textbox and 3 buttons. I want the text box to be able to bind to a database using a datacontrol.
    How would I expose the DataSource, DataField etc properties and how do I save the data automatically etc.

    Any examples would be greatly appreciated.

    Thanks,
    Don't anthropomorphize computers -- they hate it

  2. #2
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Are you using an ADODC control? or something similar? If so then add a property to ya usercontrol:
    VB Code:
    1. Option Explcit
    2.  
    3. Private mctlDC   As ADODC
    4.  
    5. Public Property Let DataControl(ByRef pctlValue As ADODC)
    6.    Set mctlDC = pctlValue
    7.    'Code here to bind the text box to a certain field
    8. End property
    Now just pass ya data control to this propetry and the text box will be bound.

    Woka

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width