-
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
-
come on guys, its not hat hard
-
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.
-
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
-
hello guys, any help please
-
Please Help Me
Does AnyOne Have A Answer For This