A
--== Alain ==--
Hi,
I have a huge problem...
My property does not appear in the "propertyGrid" of "test Container",
when i test my custom control.
Here is the custom control code :
namespace ARListView.Design
{
[DesignTimeVisible(true),
ToolboxItem(true),
ToolboxBitmap(typeof(ARListView.Design.CARListView),"CARListView.bmp")]
public partial class CARListView : UserControl
{
....
#region Properties - ListView
#region Property : GridLines
[Category("Appearance"),
Browsable(true),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
Description("Setup Style, Type and Color of gridlines to draw.")]
[TypeConverter(typeof(CGridLineConverter))]
public CGridLine GridLines
{
get
{
return this.m_GridLines;
}
set
{
if (value != this.m_GridLines)
{
if (value != null)
{
this.m_GridLines = value;
}
}
}
}
....
}
if i do not place the [TypeConverter(typeof(CGridLineConverter))]
and / or
DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
my property is displayed but the whole field is colored in black.
What could be the problem ?
thanks a lot,
Al.
I have a huge problem...
My property does not appear in the "propertyGrid" of "test Container",
when i test my custom control.
Here is the custom control code :
namespace ARListView.Design
{
[DesignTimeVisible(true),
ToolboxItem(true),
ToolboxBitmap(typeof(ARListView.Design.CARListView),"CARListView.bmp")]
public partial class CARListView : UserControl
{
....
#region Properties - ListView
#region Property : GridLines
[Category("Appearance"),
Browsable(true),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
Description("Setup Style, Type and Color of gridlines to draw.")]
[TypeConverter(typeof(CGridLineConverter))]
public CGridLine GridLines
{
get
{
return this.m_GridLines;
}
set
{
if (value != this.m_GridLines)
{
if (value != null)
{
this.m_GridLines = value;
}
}
}
}
....
}
if i do not place the [TypeConverter(typeof(CGridLineConverter))]
and / or
DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
my property is displayed but the whole field is colored in black.
What could be the problem ?
thanks a lot,
Al.