#include in vb.net

A

Altman

Is there a way to do an #include type thing in vb.net? I have a couple of
constants and I want to be able to have all my controls take those constants
from one spot.
 
H

Herfried K. Wagner [MVP]

Altman said:
Is there a way to do an #include type thing in vb.net?

No.

Add the constants to a module, so they will be imported automatically...
 
C

Cor Ligthert

Altman

Yes of course using OOP is nothing more than consequently including parts
you made before and reusing them. (In your case the most easy one is a
shared class)

So make your class and use it.

I hope this helps

Cor

"Altman"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top