|
-
Dec 23rd, 2001, 11:18 PM
#1
Thread Starter
Fanatic Member
data properties
I want to create an activex control with properties
databindings,datasource,datafield,dataformat,datamember.
how do i create these properties ?
-
Dec 27th, 2001, 04:54 AM
#2
-= B u g S l a y e r =-
VB Code:
Option Explicit
Private mvar_datasource As String
Private mvar_databindings As String
Public Property Get databindings() As String
databindings = mvar_databindings
End Property
Public Property Let databindings(ByVal vNewValue As String)
mvar_databindings = vNewValue
End Property
Public Property Get datasource() As String
datasource = mvar_datasource
End Property
Public Property Let datasource(ByVal vNewValue As String)
mvar_datasource = vNewValue
End Property
'.
'.
'.
'.
'.
'.
'.
-
Dec 27th, 2001, 10:53 AM
#3
New Member
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.
-
Dec 27th, 2001, 12:39 PM
#4
-= B u g S l a y e r =-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|