Hello,
Thanks for reviewing my question. I am just starting out create a custom
control following the KB example "Create a Data Bound ListView Control". I
am receiving a syntax error on the following:
(43): No overload for method 'EditorAttribute' takes '1' arguments
(43): No overload for method 'GetType' takes '1' arguments
[Category("Data"),
EditorAttribute("System.Windows.Forms.Design.DataM emberListEditor,System.Design", GetType("System.Drawing.Design.UITypeEditor"))] // << SYNTAX ERROR
public string DataMember
{
get
{
return mDataMember;
}
set
{
mDataMember = value;
DataBind();
}
}
From the article, I need the attributes in order for VS.NET invoke a
specific object to manage the enhanced display in the Properties window.
Any ideas what causing the syntax error?
Many Thanks
Peter