Results 1 to 4 of 4

Thread: data properties

  1. #1

    Thread Starter
    Fanatic Member vishalmarya's Avatar
    Join Date
    Feb 2001
    Location
    New Delhi , INDIA
    Posts
    858

    Question data properties

    I want to create an activex control with properties

    databindings,datasource,datafield,dataformat,datamember.

    how do i create these properties ?

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. Option Explicit
    2.  
    3. Private mvar_datasource As String
    4. Private mvar_databindings As String
    5.  
    6. Public Property Get databindings() As String
    7.     databindings = mvar_databindings
    8. End Property
    9.  
    10. Public Property Let databindings(ByVal vNewValue As String)
    11.     mvar_databindings = vNewValue
    12. End Property
    13.  
    14. Public Property Get datasource() As String
    15.     datasource = mvar_datasource
    16. End Property
    17.  
    18. Public Property Let datasource(ByVal vNewValue As String)
    19.     mvar_datasource = vNewValue
    20. End Property
    21. '.
    22. '.
    23. '.
    24. '.
    25. '.
    26. '.
    27. '.

  3. #3
    New Member
    Join Date
    Dec 2001
    Posts
    5

    Lightbulb no code needed.

    Firstly you must create a property for example Text property for Textbox in your activex control. Then from <Tools> menu select <Procedure Attributes>. In the window select Text property. After that click <Advanced> button, at the bottom of the window you can see <Data Binding> frame. Click <Property is data bound> check box and next two items which are <This property binds to DataField>,<Show in DataBindings collection at design time> and that's all. Good Luck.

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629

    Re: data properties

    Originally posted by vishalmarya
    I want to create an activex control with properties

    databindings,datasource,datafield,dataformat,datamember.

    how do i create these properties ?
    I think he wants to make a control of his own... or?

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