473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

intellisense for vb.net dll?

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

Nov 21 '05 #1
2 6256
Hi Ron,
Check out this link
http://www.ftponline.com/vsm/2002_04...efault_pf.aspx

There is a ComClass attribute you have to set in the .NET Class. I did this
and explicitly set ClassID and InterfaceID GUIDs, rebuilt the solution and
got Intellisense to show for my .NET DLL. Hope this helps.

"Ron" wrote:
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

Nov 21 '05 #2
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.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: andrew.queisser | last post by:
Yesterday I typed in some C++ code that called a function with two ints. Intellisense (auto-complete) helpfully told me that the first formal parameter was called "frontLight" and the second...
6
by: Stefan Kronberg | last post by:
I'm working on a solution containing about 20 projects. Some of the projects contain class definitions that are used in other of the projects. Most of the time intellisense is working ok, i.e. if I...
1
by: Christopher W. Douglas | last post by:
I'm working in VB.Net, using Visual Studio 2003. I have a project, let's call it Foo, that contains common methods, forms, and objects I use in other projects. It compiles as Foo.dll, which I...
0
by: Jim | last post by:
I had a strange problem the other day when using Intellisense, and wondering if anyone has any experience with or advice on this... Just to give some quick background, I have a multi-tier...
1
by: Yaron | last post by:
Hi, I have a custom ListView-type control that I designed a few months ago. The control is completely stable and functional. However, often, the Visual Studio .NET IDE's Intellisense will lose and...
9
by: Ulf Lindback | last post by:
Hi! We have an application surveillance product with a number of API's for different languages; one of them is a C API. Now I wonder how we can supply intellisense to our Visual Studio.Net...
3
by: AJ | last post by:
I am using Microsoft Visual C++ .NET in Visual Studio 2003. Why there is no intellisense in MC++? Any workarounds?
12
by: Peteroid | last post by:
I was creating my application just fine for the last 3 weeks or so. Then, starting this morning, IntelliSense seems to be having problems. It goes into a locked 'Updating IntelliSense..." mode....
5
by: wal | last post by:
Hello, I'm using __declspec(property) to access get/set methods as properties (like in C# and VB.NET). Now, the problem is that both the property name and the get/set methods show in the...
3
by: Travis | last post by:
Hi, I was a user of Visual C# for a while and have gotten used to the Intellisense for that program. I went to try Visual Basic, and the intellisense is so much different. I'll try to make an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.