Jason

Jason

  • NA
  • 9
  • 0

Using external files in C#...

Dec 22 2003 9:03 AM
I am trying to create something similar to VB modules. Do I have to create a DLL or can I just call classes from another .CS file? I've tried pulling from a CS file, but I get the error that I need to set an entry point. I've added the namespace at the beginning. The example below is roughly what I'm trying to do, I can see the functions from the other file, I just keep getting that error on compile. using Example.test //Windows form stuff... public void myFunction() { myClass mC = new myClass(); label1.Text = mC.stuff().ToString(); } thanks, Jason

Answers (2)