intellisense for vb.net dll?


R

Ron

Hello,

Is there intellisense for vb.net dll's? Here is a simple
dll I wrote which I invoke in MS Access. Note: I set the
build property to include registration for Com Interop =
True:
----------------------------------------------------
Imports System.Runtime.InteropServices

Namespace dllVB
Public Class vbDll
Private s1 As String

<ComVisible(True)> _
Public Property t1() As String
Get
Return s1 & " testing"
End Get
Set(ByVal Value As String)
s1 = Value
End Set
End Property
End Class1
End Namespace
-------------------------------------------

I call it like this in Access:

Sub test()
Dim f1 As dllVB.vbDll
Set f1 = New dllVB.vbDll
f1.t1 = "bill"
Debug.Print f1.t1
End Sub

I get intellisense for Dim f1 As ... I can see dllVB in
the dropdown list that follows As and then dllVB.... I
can see vbDll in the next dropdown list fir dllVB. But I
do not get any dropdown list for my variable f1.

f1.... no list.

In VB6 I could write an ActiveX dll and get intellisense.
I am just wondering if there is a way to get intellisense
in a Com environment from a .Net dll? I had the same
problem in C#. Note that I added <ComVisible(True)> _

But this did not add any intellisense.

Thanks,
Ron
 
Ad

Advertisements

Ad

Advertisements

J

JBEYTIA

Imports System.Runtime.InteropServices

'This will display the intellisense on the VB6.
<ClassInterface(ClassInterfaceType.AutoDual)> _
Public Class vbDll

'Rest of class code here.

End Class

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top