문제

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

도움이 되었습니까?

해결책

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

다른 팁

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#`
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top