开发者

Problems with references in WinForms

开发者 https://www.devze.com 2023-03-28 01:41 出处:网络
I added a class in WinForm named it class2. Fr开发者_StackOverflowom that class I reference to a winform form class called chessboard..

I added a class in WinForm named it class2. Fr开发者_StackOverflowom that class I reference to a winform form class called chessboard..

Winform shows me a mistake/error and writes:

The type or namespace name "ChessBoard" could not be found are you missing using directive or an assembly reference?

What do i do.. I am in the same project


Is "ChessBoard" capitalized exactly as it's capitalized in its class definition?

Do you have the same

namespace Whatever_Namespace
{

}

declaration around both classes?


are probably not all under the same namespace, verify that the namespace is the same for both classes.

Regards.

0

精彩评论

暂无评论...
验证码 换一张
取 消