|
-
Jul 27th, 2000, 05:55 PM
#1
Thread Starter
Addicted Member
ok this is a hard one
I have an active x control, which has a text box in it, and i'm making properties, every thing is ok, but two properties are annoying me, DataSource and DataField, i want to add them to the control, and they are connected to the textbox ofcourse, but I couldn't,,, do you know how to do that?? and code please
thanx alot
-
Jul 27th, 2000, 07:16 PM
#2
Thread Starter
Addicted Member
come on guys, its not hat hard
-
Jul 27th, 2000, 07:24 PM
#3
Frenzied Member
the activeX controll Interface Wizard does this
Code:
Option Explicit
'WARNING! DO NOT REMOVE OR MODIFY THE FOLLOWING COMMENTED LINES!
'MappingInfo=Text1,Text1,-1,DataSource
Public Property Get DataSource() As DataSource
Set DataSource = Text1.DataSource
End Property
Public Property Set DataSource(ByVal New_DataSource As DataSource)
Set Text1.DataSource = New_DataSource
PropertyChanged "DataSource"
End Property
'Load property values from storage
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
Set DataSource = PropBag.ReadProperty("DataSource", Nothing)
End Sub
'Write property values to storage
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
Call PropBag.WriteProperty("DataSource", DataSource, Nothing)
End Sub
Feel free to remove the commented lines even though it says not to.
It doesn't do anything for the DataField Property tho.
-
Jul 27th, 2000, 07:58 PM
#4
Thread Starter
Addicted Member
it gives me that "user-defined type not defined" message for the datasource type.
How do I define this DataSource Type???????
please help me
Thanx alot
-
Jul 28th, 2000, 11:31 AM
#5
Thread Starter
Addicted Member
hello guys, any help please
-
Jun 21st, 2001, 11:54 PM
#6
Frenzied Member
Please Help Me
Does AnyOne Have A Answer For This
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
|