Link to home
Start Free TrialLog in
Avatar of Gunit2507
Gunit2507

asked on

Namespace Question

I have bought an outside control and it requires to be refrenced using a long line of values.... Such as program.windows.program.object
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?
Avatar of bman9111
bman9111

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

example


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..

Avatar of Gunit2507

ASKER

how do you do the second suggestions you said?
what make a template???

what version of vb.net u using???

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

ASKER CERTIFIED SOLUTION
Avatar of lee_ingram
lee_ingram

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
and then simply use the objects