Inherited Form Question

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."
 
J

Jack Jackson

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.
 
B

Bob Powell [MVP]

In eight years of using Windows Forms I have never found a good use for
visual inheritance.

Bob Powell.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top