Domanda

I have a vb.net project here using code behind. Basically I have a page.aspx.vb code file with literally thousands of lines of code. I wanted to take all the subs and functions out of it to make it more "manageable" - but I have no idea how I can call subs from separate code files.

Would anyone be able to point me in the right direction for this?

Thanks. DS

È stato utile?

Soluzione

In your new project just add .dll files from old project as a reference and then you can use those subs (They have to be Public).

You can find more about references HERE

Altri suggerimenti

In VB.Net you can use modules in order to make subs and functions accessible from all over your code

Modules in `VB.Net` are similar to `static classes` in `c#`
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top