Namespace Question

Posted on 2006-05-16
Last Modified: 2010-04-23
I have bought an outside control and it requires to be refrenced using a long line of values.... Such as
Is their a way to declare a variable to hold all that information so it does not have to be typed all the time? or anything that might help?
Question by:Gunit2507
    LVL 8

    Expert Comment

    yup just make a module and declare the variables using global at the beginning


    global var as string

    then add that module everytime u need it. Or u could make that module a template. I have done that a lot

    u could also compile it to a .dll and reference it that way...I think the module as a template is a better way..


    Author Comment

    how do you do the second suggestions you said?
    LVL 8

    Expert Comment

    what make a template???

    what version of u using???

    LVL 8

    Expert Comment

    in vb 2005 there is a really easy and nice way of doing it...if u have 2003....I would just create a standard module with the code...Place it in a location so whenever u want to use it just add it to the current project...really easy...

    vb 2005 really focuses better on templates...

    My 2 cents

    LVL 1

    Accepted Solution

    add the following line at the top of your class.

    LVL 1

    Expert Comment

    and then simply use the objects

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now