H
houghtelling
I have a Windows Mobile 5.0 Pocket PC project named
CuiNetCF.Windows.Forms. I have created a TextBox class that is
inherited from System.Windows.Forms.TextBox, which works perfectly. I
have added additional properties to this textbox. From here, I have
created another inherited textbox call BranchTextBox that is inherited
from CuiNetCF.Windows.Forms.TextBox.
namespace CuiNetCF.Windows.Forms
{
public partial class TextBox : System.Windows.Forms.TextBox
{
...
}
}
namespace CuiNetCF.Windows.Forms
{
public partial class BranchTextBox : CuiNetCF.Windows.Forms.TextBox
{
...
}
}
When viewing the BranchTextBox in the designer I receive the following
message (unless I add a circular reference to the assembly):
"The designer could not be shown for this file because none of the
classes within it can be designed. The designer inspected the following
classes in the file: BranchTextBox --- The base class
'CuiNetCF.Windows.Forms.TextBox' could not be loaded. Ensure the
assembly has been referenced and that all projects have been built."
This message goes away if I include a reference the project, but it
doesn't seem right that I would need to add a reference to the same
project! What am I missing???
CuiNetCF.Windows.Forms. I have created a TextBox class that is
inherited from System.Windows.Forms.TextBox, which works perfectly. I
have added additional properties to this textbox. From here, I have
created another inherited textbox call BranchTextBox that is inherited
from CuiNetCF.Windows.Forms.TextBox.
namespace CuiNetCF.Windows.Forms
{
public partial class TextBox : System.Windows.Forms.TextBox
{
...
}
}
namespace CuiNetCF.Windows.Forms
{
public partial class BranchTextBox : CuiNetCF.Windows.Forms.TextBox
{
...
}
}
When viewing the BranchTextBox in the designer I receive the following
message (unless I add a circular reference to the assembly):
"The designer could not be shown for this file because none of the
classes within it can be designed. The designer inspected the following
classes in the file: BranchTextBox --- The base class
'CuiNetCF.Windows.Forms.TextBox' could not be loaded. Ensure the
assembly has been referenced and that all projects have been built."
This message goes away if I include a reference the project, but it
doesn't seem right that I would need to add a reference to the same
project! What am I missing???