Results 1 to 7 of 7

Thread: Install a VB Lib?

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2010
    Posts
    35

    Install a VB Lib?

    How do you install VB Libs ? the .DLL's ?

  2. #2
    Stack Overflow mod​erator
    Join Date
    May 2008
    Location
    British Columbia, Canada
    Posts
    2,824

    Re: Install a VB Lib?

    Use the Project dropdown on the menu bar.
    Project > Add Reference...

    Then go to the Browse tab, navigate to your DLL(s), select it/them and press OK. Now you can reference it with the root namespace name, usually the name of the DLL.


    (For example, if I add a reference to MyLib.dll with a class MyClass in it, you can reference it by using MyLib.MyClass.)

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Install a VB Lib?

    What exactly do you mean by "install"? Are you talking about when you deploy your EXE? If so then you simply deploy the DLLs with it. There are various ways to do that, depending on your needs and wants.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Member
    Join Date
    Feb 2010
    Posts
    35

    Re: Install a VB Lib?

    I tried to install the MenuSkinner thing here http://dotnetrix.co.uk/controls.htm
    but I can't find the 'Icon on MenuSkin1' option.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Install a VB Lib?

    There's no actual installation required. If the download has an installer then you can run that and it will handle installation for you but, otherwise, all you have to do is save the DLL file to your machine somewhere. You can then add the component(s) the DLL contains to the Toolbox with a right-click, allowing you to then add an instance to your forms like you do any other WinForms component. Adding an instance to your form will handle adding the reference for you, or else you can add the reference manually as minitech described.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Member
    Join Date
    Feb 2010
    Posts
    35

    Re: Install a VB Lib?

    I did what you said, and it added it to the toolbox, but in the image I showed earlier, there is still no 'Icon on MenuSkin1' option. No other options as the LIB says. And there is no 'Dynamic Properties' there either. What could I be doing wrong ?

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Install a VB Lib?

    I just looked closer at that page you linked to and it's showing properties for a MenuItem. That would require you to be using a MainMenu and/or a ContextMenu. While those classes still exist, they have been superseded by the MenuStrip and ContextMenuStrip classes. Which are you using? If you're not using the old classes then you can't use that skinning component.

    That said, you don't really need to for those classes. The ability to supply a custom renderer is built into those classes.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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