Results 1 to 7 of 7

Thread: Adding Components in VB 6

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    3

    Adding Components in VB 6

    This is my first time using visual basic and I cannot figure out how to add a component to my project.
    I wish to add Microsoft Common Dialog Control 6.0 but each time I click on OK in the components dialog box, the vb application exits. Is there something that needs to be installed in order to add components to the toolbox of a project?

    Any help is greatly appreciated.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Adding Components in VB 6

    Click Project/Components

    Find the Microsoft Common Dialog control in the components list.

    Check the box next to it and click OK

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    3

    Re: Adding Components in VB 6

    I did just that- but when I click OK, the application exits. Is there a special setting for the project properties that enables addition of components?

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Adding Components in VB 6

    This may be due to limited permissions of the user you have logged in to Windows as.

    I log in to Windows as a 'restricted' user, and get the same problem.

    If I run VB as a different user (with better permissions), it works fine.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Adding Components in VB 6

    Quote Originally Posted by si_the_geek
    This may be due to limited permissions of the user you have logged in to Windows as.

    I log in to Windows as a 'restricted' user, and get the same problem.

    If I run VB as a different user (with better permissions), it works fine.
    Fascinating piece of information....I did not know that user permissions would have that affect on the VB IDE.

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Adding Components in VB 6

    It's wierd.. I guess that there is some kind of "registering" of the controls (to ensure they are valid), which of course the user cannot do.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    3

    Re: Adding Components in VB 6

    I will check with the IT dept.
    Thanks.

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