[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Andrés Giraldo

1/13/2003 10:35:00 PM

Hi!

I'm building a Web Control in VB.NET, actually I have a problem with this, I
have an OleDbConnection type property, when I assign it by code, I mean

MyClass.Connection = OleDbConnection1

It works fine...

But If I use the Property Dialog Box to assign it the same component, it
fails and returns me the following error:


"Can't generate code for a value of type
'System.Data.OleDb.OleDbConnection'. Error trying to generate the value of a
property for Connection."


What's wrong?

Thanks!


----------------------------------------------------

Here's my code:


<DefaultProperty("Connection")> _
Public Class MyRs
Inherits WebControls.WebControl

Private _Connection As OleDbConnection

<Bindable(True)> _
Public Property Connection() As OleDbConnection
Get
Return _Connection
End Get
Set(ByVal Value As OleDbConnection)
_Connection = Value
End Set
End Property
End Class