User Control - User-defined type not defined 
Author Message
 User Control - User-defined type not defined

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")
"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



Sat, 10 Nov 2001 03:00:00 GMT  
 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



Sun, 11 Nov 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. User Defined Type Not Defined

2. Compile Error: User-defined type not defined

3. User-defined type not defined (Access 97)

4. Excel : User-defined type not define

5. Compile Error - User defined type not defined

6. User-defined type not defined (Access 2000)

7. Dim oappWD as Word.Application: User defined type not defined

8. User- Defined type not defined

9. User Define Type Not Defined

10. FileSystemObject "User Defined Type Not Defined"

11. Compile Error - User-Defined type not defined

12. "User defined type, not defined"

 

 
Powered by phpBB® Forum Software