Stephan van Hulst wrote:Most of your issues are caused by having a class Organization_Manager inside the namespace Organization_Manager. This is a bad idea. Either rename the namespace or the class.
Problem 3 is caused because of a typo. You probably intended to refer to the local variable "sql", but instead you wrote "Sql".
The last problem might be caused because of a missing resources file. Do you have a Resources.resx inside the Properties folder of your project, and is its build action set to "Embedded Resource"? Does it have a matching Resources.Designer.cs file?
Stephan van Hulst wrote:When you select it in Visual Studio (if you're using Visual Studio) and look at the properties window, what does it say under Build Action?
Do you also have a Resources.Designer.cs file?
Abdu moh wrote:
Stephan van Hulst wrote:When you select it in Visual Studio (if you're using Visual Studio) and look at the properties window, what does it say under Build Action?
Do you also have a Resources.Designer.cs file?
inside Properiteis flder i have AssemblyInfo.cs, Resource,setting.designer.cs, settings.settings
Stephan van Hulst wrote:Okay so can you show us the updated lines that the error messages refer to?
Stephan van Hulst wrote:So you didn't fix the code yet by changing the name of the class or namespace?
Stephan van Hulst wrote:Please right-click the solution and click "Rebuild Solution". Then list the errors you are getting. If they are still the same errors you got at the start, then change the name of the Organization_Manager class to something else. I suggest you just remove the underscore so it becomes OrganizationManager.
Please also post the contents of your .csproj file.
Stephan van Hulst wrote:OrganizationManager.Organization_Manager.IsValidNamePass implies that your namespace is called "OrganizationManager", and that the class is named "Organization_Manager", but you just said that you renamed your namespace to "organizationManager".
If you REALLY renamed your class to organizationManager, the line should read:
However, I suspect that you made a typo in your previous post (again, be VERY careful when typing identifiers when you're trying to get help) and you really renamed your class to OrganizationManager. If that's the case, the line should read:
Stephan van Hulst wrote:So is your application compiling now?
Stephan van Hulst wrote:Did you also rename the class inside the OrganizationManager.Designer.cs file?
Stephan van Hulst wrote:Okay, so the error message is saying that it can't find the methods GetUserNamePassword and IsValidNamePass inside the OrganizationManager class, which shouldn't be very surprising because your OrganizationManager class is empty.
Stephan van Hulst wrote:Have you followed a C# tutorial yet? Do you know how to write classes?
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/
Stephan van Hulst wrote:You mean the C# language. The C programming language is something completely different.
If you have problems with the programming guide, let us know.
Don't get me started about those stupid light bulbs. |