Hi all, I've got a control that's declared thus:
public partial class MessageBase<T> : UserControl
{
protected T myEntry;
public MessageBase()
{
InitializeComponent();
}
public MessageBase(T newEntry)
{
InitializeComponent();
myEntry = newEntry;
}
}
}
EDIT; Removed the interface.
The T stands for the information I'm going to be displaying within the control. The complier appears to like this.
But it wont allow me to do this:
public partial class MessageControl : MessageBase<Post>
{
public MessageControl()
{
InitializeComponent();
}
}
EDIT: I can't reproduce the error after starting from sratch so maybe was something else
Any ideas on how to do this????
Thanks in advance