You'll need to hide or override the existing property, specify the
DefaultValueAttribute with the appropriate default value, and also set the
default value into the property from within the constructor (Sub New).
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemcomponentmodeldefaultvalueattributeclasstopic.asp

Signature
Tim Wilson
.NET Compact Framework MVP
> I have created a new control in VB.NET that Inherits a ListView so that I can
> add some of my own functionality. One of the other things I would like to do
[quoted text clipped - 9 lines]
> Thanks.
> Chris.
Chris Podmore - 14 Feb 2006 09:24 GMT
I have tried what you suggest and it now appears to work, I was setting
Me.GridLines = True in Sub New and in the Property also returning & setting
Me.GridLines, I have changed this to MyBase.GridLines in all three places and
it now appears to work.
Thanks for you help.
Chris.
> You'll need to hide or override the existing property, specify the
> DefaultValueAttribute with the appropriate default value, and also set the
[quoted text clipped - 17 lines]
> > Thanks.
> > Chris.