CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: VB IntelliSense

  1. #1
    Join Date
    Mar 1999
    Location
    USA
    Posts
    25

    VB IntelliSense

    A colleague of mine is experiencing some problems with the IntelliSense in VB 6.0. Here is the scenario...

    He creates a class module. The class module has public properties and procedures...

    From an existing class module, he declares and instantiates the new class. No evident spelling errors. The new class object is instantiated in the Class Initialize event of the existing class and declared at module level. This should allow the developer to view any public properties or procedures residing in the new class...This is not the case. For some reason the IntelliSense does not work.

    My question is...

    Has anyone else experienced this type of reaction from the VB IntelliSense before?????? Any ideas of what to do.

    Thanks,
    Sam





  2. #2
    Join Date
    Feb 2000
    Location
    Indiana
    Posts
    308

    Re: VB IntelliSense

    Make sure there is a reference set to the project.


  3. #3
    Join Date
    Mar 1999
    Location
    USA
    Posts
    25

    Re: VB IntelliSense

    The reference has been set. The odd thing about the problem is this;

    Say you have two class modules...
    You add a new class module
    You declare and instantiate the new class object in both of the already existing classes...
    In one class, the VB IntelliSense appears, giving you access to the new class' public properties and procedures...
    In the other class, the VB IntelliSense does not appear...Keep in mind....NO SPELLING ERRORS

    Any other ideas???




  4. #4
    Join Date
    Feb 2000
    Location
    Indiana
    Posts
    308

    Re: VB IntelliSense

    Just another thought...
    If his declaration doesn't specify the library, try fully qualifying the library. Instead of Dim oObject as Class1, try Dim oObject as Project1.Class1


  5. #5
    Join Date
    Sep 1999
    Posts
    202

    Re: VB IntelliSense

    There is a problem with declarations: undefined variable, missing reference or duplicate declaration.

    VB won't always catch the 'duplicate declaration' problem - e.g. you can have 2 .bas modules with definition of RECT (Public Type RECT ...), your code will run OK, but IntelliSense will be 'confused'.


  6. #6
    Join Date
    May 1999
    Posts
    3,332

    Re: VB IntelliSense

    >Has anyone else experienced this type of reaction from the VB IntelliSense before??????

    Yes, I have experienced this before.

    >Any ideas of what to do?
    No, not really. Fully qualifying modules (as suggested) didn't help at all.
    MSDN doesn't mention any problems about Intellisense that relate to our situation.

    A workaround that we used:
    Declare variables with explicit types and assign to these variables instead of using lots of dots, e.g. application.yourobject.yoursubobject....



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured