inaccessible due to its protection level ???
-
The error is: 'Class1.frmAccount.txtOwnerName' is inaccessible due to its protection level.
public void ShowAddAccount(string Name) { frmAccount frmA = new Class1.frmAccount(); frmA.txtOwnerName.text = Name; // This is the line that causes the error frmA.ShowDialog(); }
When I change "private System.Windows.Forms.TextBox txtOwnerName;" to public in frmAccount then it says "'System.Windows.Forms.Control.text' is inaccessible due to its protection level" I know this is a logical mistake but I still need help. Thanks in advance. Radgar "Imagination is more important than knowledge." - Albert Einstein -
The error is: 'Class1.frmAccount.txtOwnerName' is inaccessible due to its protection level.
public void ShowAddAccount(string Name) { frmAccount frmA = new Class1.frmAccount(); frmA.txtOwnerName.text = Name; // This is the line that causes the error frmA.ShowDialog(); }
When I change "private System.Windows.Forms.TextBox txtOwnerName;" to public in frmAccount then it says "'System.Windows.Forms.Control.text' is inaccessible due to its protection level" I know this is a logical mistake but I still need help. Thanks in advance. Radgar "Imagination is more important than knowledge." - Albert Einsteintext with lower case is an internal property. Try Text. Then make it a property. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
-
text with lower case is an internal property. Try Text. Then make it a property. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer