I need to change the Inherits statement in my class initialization file to
Inherits FileSystemWatcher
but I have found that this disables the
System.Windows.Forms.Form
references in my file and gives me debug errors for missing method references. The initialization file also does not accept the
Inherits FileSystemWatcher
statement.
I have tried to import
System.Windows.Forms.Form
on the initialization file, but this does not resolve the reference issues in the file. I have found that
System.Window.Forms.Form
must be in the inherits statement of the initialization file.
I seems to me that there are two issues: the base class in the primary file and the initialization file have to be the same, and the Windows Forms namespace must be used in the initialization file to make valid references for the methods used in the file.
How do I overcome these obstacles so that I can use the FileSystemWatcher inherit statement in my primary class?