Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

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?
0
Gunit2507
Asked:
Gunit2507
  • 3
  • 2
1 Solution
 
bman9111Commented:
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..

0
 
Gunit2507Author Commented:
how do you do the second suggestions you said?
0
 
bman9111Commented:
what make a template???

what version of vb.net u using???

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
bman9111Commented:
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

0
 
lee_ingramCommented:
add the following line at the top of your class.

IMPORTS program.windows.program
0
 
lee_ingramCommented:
and then simply use the objects
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now