D
Daniel
Hey guys
I had a site in .net 1.1 and have just moved it to .net 2.0.
A strange thing, in .net 1 when you create a project it puts it in a
namespace, in 2.0 it doesn't?
Also when in a namespace one form can't access methods in another, and when
not in a namespace same issue.
However a dll i made in my orignal with a namespace was fine.
So is this a new syntax thing, that in ,net 2.0 one forms code behind file
methods cannot access another forms codebehind class?
For example:
class Form 1 has method MyForm1Method()
class Form 2 has method MyForm2Method();
in class Form1 i used to be able to;
Form2 f2 = new Form2();
f2.MyForm2Method();
But now it can't find Form2.
Let us know if this is new syntax. I am guessing it is to ensure that all
shared methods across multiple forms are placed in a referenced dll giving
all forms access. Let me know.
D
I had a site in .net 1.1 and have just moved it to .net 2.0.
A strange thing, in .net 1 when you create a project it puts it in a
namespace, in 2.0 it doesn't?
Also when in a namespace one form can't access methods in another, and when
not in a namespace same issue.
However a dll i made in my orignal with a namespace was fine.
So is this a new syntax thing, that in ,net 2.0 one forms code behind file
methods cannot access another forms codebehind class?
For example:
class Form 1 has method MyForm1Method()
class Form 2 has method MyForm2Method();
in class Form1 i used to be able to;
Form2 f2 = new Form2();
f2.MyForm2Method();
But now it can't find Form2.
Let us know if this is new syntax. I am guessing it is to ensure that all
shared methods across multiple forms are placed in a referenced dll giving
all forms access. Let me know.
D