
User Control - User-defined type not defined
How did you create those properties?
The easiest way to make a usercontrol databound is to let VB create those
properties for you.
eg. suppose you created the property "Value" by defining its Get and Let
properties. Select Tools -> Procedure Attributes from the pulldown menu.
Select Value as your property. Click the Advanced and then check "Property
Is DataBound". Once you do this, VB will create the DataField, DataFormat,
DataMember and DataSource properties for you.
Hope this helps.
Quote:
>Hi, everyone!
>I am a new user of Visual Basic, I am going to try extend the properities
of
>text box. When I create a user control and add the DataFormat, DataSource
>properity to user control. When I add the control to a form, it say
>"User-defined type not defined" (DataFormat properity -
"IStdDataFormatDisp")
Quote:
>"User-defined type not defined" (DataSource properity - "DataSource")
>Those type should provided by Visual Basic, isn't it? How can I add the
type
>and let the program run?
>Sorry to spend your time and space for this message and thank you very much
for
>any advice.
>Best Regards,
>LLN
>lln_netvigator_com