Inherited Form Question

  • Thread starter Thread starter Robert E. Flaherty
  • Start date Start date
R

Robert E. Flaherty

I created a form which I named SpreadTemplate1 and use it for others forms to
inherit from, like the form that I named frmMyCustomersVendorList. The form
frmMyCustomersVendorList as its own controls plus controls that it inherited
from SpreadTemplate1. Both have a InitializeComponent() method.

I'm getting the following warning and do not know if this is important nor
what I could do about it:
"MyCustomers.frmMyCustomersVendorList.InitializeComponent()' hides inherited
member 'OrderWizWin.SpreadTemplate1.InitializeComponent()'. Use the new
keyword if hiding was intended."
 
InitializeComponent() should be Private in all classes, so there
shouldn't be an inheritance problem. It sounds like it is not Private
in the base form class.
 
In eight years of using Windows Forms I have never found a good use for
visual inheritance.

Bob Powell.
 
Back
Top