Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2007

Tip: Looking for answers? Try searching our database.

Form in project does not detect custom classes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Crazy Cat - 23 Oct 2007 15:03 GMT
HI

I'm developing a desktop application in Visual Studio 2005
Professional and need help.

I've created several custom classes for my project but they appear
invisible to my forms!!!

For example I create the following class -

Namespace BLL

   Public Class Building
       Inherits BizObject
       Implements IFolderItem

       Private _name As String
       Property name() As String Implements IFolderItem.name
           Get
               Return _name
           End Get
           Set(ByVal value As String)
               _name = value
           End Set
       End Property

       Private _folderId As Integer
       Property FolderId() As Integer
           Get
               Return _folderId
           End Get
           Set(ByVal value As Integer)
               _folderId = value
           End Set
       End Property

       Sub New(ByVal strName As String)
           Name = strName
       End Sub

   End Class

End Namespace

When I create a form and type imports <Project name>. intellisense
does not display the namespace. If I simply enter the namespace
manually and attempt to create an object of the type the IDE reports
that type 'Building' is not defined.

Even if I don't create a namespace for a class, it is still not
detected in the form class.

One thing I notice out of the ordinary is that the icons by the
'invisible classes' appear as white paper sheets rather than the usual
class icon.

What the hell?

It seems most of the issues I run into with this crappy product are
linked to weird quirks in the damn product rather than programming
errors.

Please help!

FRUSTRATED
Crazy Cat - 23 Oct 2007 15:11 GMT
> HI

OK, I found the problem. Apparently the classes were not being
included in the project, which is what the blank paper icon means.
Don't how they got excluded, but after including them all is well.
Sure would help if MS's documentation was better !

> I'm developing a desktop application in Visual Studio 2005
> Professional and need help.
[quoted text clipped - 59 lines]
>
> FRUSTRATED

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.