X
Xarky
Hi,
I have the following in the project, with the following desgin.
// class 1, which is a windows form
namespace Name
{
public class aaaa
{
public int number;
.....
}
}
// class 2, which is a code file
namespace Name
{
public class bbbb
{
.....
}
}
What I am trying to do is to access the object number from class bbbb,
but it is giving me an error. Also the object was tried with
protection level as public, protected and private.
Error given: The type or namespace name 'Name' could not be found
(are you missing a using directive or an assembly reference?)
Should that work? If no, how can I share an object between the two
classes.
Thanks in Advance
I have the following in the project, with the following desgin.
// class 1, which is a windows form
namespace Name
{
public class aaaa
{
public int number;
.....
}
}
// class 2, which is a code file
namespace Name
{
public class bbbb
{
.....
}
}
What I am trying to do is to access the object number from class bbbb,
but it is giving me an error. Also the object was tried with
protection level as public, protected and private.
Error given: The type or namespace name 'Name' could not be found
(are you missing a using directive or an assembly reference?)
Should that work? If no, how can I share an object between the two
classes.
Thanks in Advance