>>I have created a Class Project which has been sucessfully tested in a Winforms project. Now I want to use this Class in a ASP WebForm project. In the Solution explorer I added a reference to the DLL and in the CodeBehind VB file I tried to instanciate the object as I did in WinForms. However the class reference is no in Intellesence and if I type it in the reference is flagged as an error. Here is a snippet of my code behind.
>>
>>
>>
>>Partial Class _Default
>> Inherits System.Web.UI.Page
>>
>> Dim nSearchId As Integer = -1
>> Dim owsdata As New WebStoreData (class name flagged as error)
>>
>>
>> Public Sub New()
>>
>> End Sub
>>End Class
>>
>
>When I have this issue, I do one compile so the environment knows about the recently added reference. The compile will not work because of this but it will refresh it. Does that help?
Thanks Michael but that didn't work. I commented out the "as new..." line and ran a compile. I then removed the comment and the error was flagged again.
Glenn