Hi Guys,
I am getting an "expected type" error when trying to use an imported assembly. The following steps were followed from "CodeNotes for VB.NET":
I opened a VB Class Library project in VS.NET and wrote a function that capitalizes the first character of a string. I built the project and copied the resulting dll file from the bin directory to a local directory. I then opened a Windows application, went to "Project" / "Add Reference", browsed to and selected my dll. At the top of the form where I wanted to use the function I keyed in an imports statement (when I finished typing the "s" in "imports" and hit the space bar I was able to select the class from the drop down menu). In a local sub on the form I tried to dimension an instance of the imported function: "dim myLocalSub as " and when I hit the space bar after typing the "s" in "as" I was again able to select the dll from a drop down menu however after pressing "enter" the dll name was underlined. The pop up message that appeared when I moved the insertion icon over the name in error was "expected type". This assembly is not shared - it is private. The imported assembly contains the "Public Class" and "End Class" statements with the function coding between. Can you tell me what I am missing?
Thanks,
John D.