CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2005
    Posts
    26

    Message Box When Open VB

    Hi Everybody,

    Recently when I opened Visual Basic IDE a Message Box appears to me. This message box said:

    Subscript out of range.

    What is the reason for this message box? And what I can do to prevent this message from poping up when I open VB.

    Thanks in advance.

  2. #2
    Join Date
    Oct 2006
    Posts
    327

    Re: Message Box When Open VB

    When exactly ?
    When you create a new project and at the moment you create it ?

    Or

    When you run an existing project ? (and we would need to know your code...)

  3. #3
    Join Date
    May 2002
    Posts
    10,943

    Re: Message Box When Open VB

    Now, there is no way that this could be happening with just Visual Basic itself. You must be attempting to run some source code.

    The error you are receiving (Subscript out of range) usually means that you are attempting to work with an element of an array that does not exist.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Message Box When Open VB

    It can happen And usually the Visual Component Manager is the culprit.

    Try removing the Visual Component Manager from your list of Add Ins in the VB IDE :
    Add-Ins -> Add-In Manager:
    Select "Visual Component Manager 6.0"
    Unselect "Load behavior: Load on Startup"

    I hope this helps

  5. #5
    Join Date
    May 2002
    Posts
    10,943

    Re: Message Box When Open VB

    Thanks for the lesson Hannes.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  6. #6
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Message Box When Open VB

    Quote Originally Posted by PeejAvery
    Thanks for the lesson Hannes.
    It's just a "payback" for all the scripting lessons you gave me.

    :eek :I still need to pay my schoolfees for all those lessons
    BTW. aldowsary, if you're perhaps still using the Visual Component Manager, and don't want to unload it, reinstalling is your only other option. AFAIK
    Last edited by HanneSThEGreaT; January 26th, 2007 at 03:24 PM.

  7. #7
    Join Date
    May 2005
    Posts
    26

    Thumbs up Re: Message Box When Open VB

    Thanks guys for help and special thank for HanneSThEGreaT, because I did exactly what you said.

    Unselecting "Load behavior: Load on Startup" for the "Visual Component Manager 6.0" solve the problem & the message box disappear. I will try to reinsatll this Add-in soon.

    Thanks again.

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