Utilities File

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Hi,

I want to add a .vb file to my project that contains some
utility functions that will be re-used by different pages within the
project.

When I go to Add New Item, it offers me a Class file - which is
essentially a blank .vb file with some class syntax framework in it.
But what if I don't want a class, what if I just want a file that will
hold some public functions and subs that can be accessed from the vb
code-behind modules in the project.

I am trying to achieve some low-tech re-use. No inheritance,
just some publicly available functions. This should be fairly easy,
but it seems like VS is always looking for a class.

Can someone tell me how to achieve this?

J
 
Can someone tell me how to achieve this?

Declare the methods in the class as Public Shared - then you can access then
without having to instantiate the class...
 
Back
Top