Inherit a control but set different default properties

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
is change some of the appearance of the grid when it’s placed on a form in
design view. The company I work insists on Grid Lines, Full Row Select, No
Multi Select and the View set to Details. I can do this in New but this
doesn’t allow the properties to be changed.

So what I want to do is be able to draw the new control on a form in design
view and have things like GridLines set to True rather than the default of
false. Anyone got any ideas how to accomplish this?

Thanks.
Chris.
 
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.
 
Back
Top