Abdu moh

Greenhorn
+ Follow
since Feb 09, 2022
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Abdu moh

I have this code whenever I run the program  error occurs " input string was not in a correct format" this for ID value which is also the Primary Key in the Database too . please what is the solution to this error


Employee Class:



Manage Employee Form :

2 years ago
when i try to run the software i am facing  this error :

my connection code :

2 years ago

Kevin D. McCallister wrote:Can you please send us the content of your ?



2 years ago
I have project created by visual studio 2022 using C# , but is not loading due to this error :"value cannot be null. parameter name format" and "he project file could not be loaded.  The root element is missing"
I have attached screenshot of both errors .
2 years ago

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.



Yes for sure  it is C# , and i will try rewrite  it correctly and your help is appreciated .
2 years ago

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/



I am bet new to C language that's why did not know
2 years ago

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.


So how to overcome that .
2 years ago
This the formforgotpassword class :

- OrganizationManager class:
2 years ago

Stephan van Hulst wrote:Did you also rename the class inside the OrganizationManager.Designer.cs file?


I am actually not seeing file named OrganizationManager.Designer.cs in my list , having said that the error i have is about objects definitions that i mentioned in my previous reply .
2 years ago

Stephan van Hulst wrote:So is your application compiling now?


no it is not the error of  :
1- Error CS0117 'OrganizationManager' does not contain a definition for 'GetUserNamePassword' Organization Manager C:\Users\Abdu Mohamed\source\repos\Organization Manager\Organization Manager\Pal\Forms\FormForgotPassword.cs 84 .

2-Error CS0117 'OrganizationManager' does not contain a definition for 'IsValidNamePass' Organization Manager C:\Users\Abdu Mohamed\source\repos\Organization Manager\Organization Manager\Pal\Forms\FormLogin.cs 72.

in addition of debugging issue.



2 years ago

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:


yes you are right I updated the class name as mentioned that is the line :
string Check = Organization_Manager.OrganizationManager.IsValidNamePass(textBoxName.Text.Trim(),textBoxPassword.Text.Trim(),sql);
2 years ago

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.


now I changed the name of the class to be organizationManager and it is solved errors of classs , remainning the following :
1- string Check = OrganizationManager.Organization_Manager.IsValidNamePass(textBoxName.Text.Trim(),textBoxPassword.Text.Trim(),sql);
Severity Code Description Project File Line Suppression State
Error CS1061 'object' does not contain a definition for 'IsValidNamePass' and no accessible extension method 'IsValidNamePass' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) Organization Manager C:\Users\Abdu Mohamed\source\repos\Organization Manager\Organization Manager\Pal\Forms\FormLogin.cs 72 Active
same goes with other forms all related to" object' does not contain a definition"

the .csproj file :
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 <PropertyGroup>
   <ProjectView>ShowAllFiles</ProjectView>
   <PublishUrlHistory>publish\</PublishUrlHistory>
   <InstallUrlHistory />
   <SupportUrlHistory />
   <UpdateUrlHistory />
   <BootstrapperUrlHistory />
   <ErrorReportUrlHistory />
   <FallbackCulture>en-US</FallbackCulture>
   <VerifyUploadedFiles>false</VerifyUploadedFiles>
 </PropertyGroup>
 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
   <StartAction>Project</StartAction>
 </PropertyGroup>
</Project>


2 years ago

Stephan van Hulst wrote:So you didn't fix the code yet by changing the name of the class or namespace?


Actually i am confused a bit in class and namespace .
and it is not debugging due this massage appears  
2 years ago

Stephan van Hulst wrote:Okay so can you show us the updated lines that the error messages refer to?



these are the lines with error type  :
1- 1514 : namespace Organization_Manager.Pal.Forms.User_Control
2-  1061        :  string UserName = Organization_Manager.Organization_Manager.GetUserNamePassword("SELECT User_Name from User_Table where User_Email = '" + textBoxEmail.Text.Trim() + "'; ", sql);
3-  1061       :  string password = Organization_Manager.Organization_Manager.GetUserNamePassword("SELECT User_Pass from User_Table where User_Email = '" + textBoxEmail.Text.Trim() + "'; ", sql);
4-     1061       :  string Check = Organization_Manager.Organization_Manager.IsValidNamePass(textBoxName.Text.Trim(),textBoxPassword.Text.Trim(),sql);


2 years ago
I have Resources.resx  file and it is assigned to "Embedded Resource"
I  have  Resources.Designer.cs  and it is assigned to " Compile"
and now all related errors are solved, what is remaining errors are

1- Error CS1061 'object' does not contain a definition for 'GetUserNamePassword' and no accessible extension method 'GetUserNamePassword' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) Organization Manager C:\Users\Abdu Mohamed\source\repos\Organization Manager\Organization Manager\Pal\Forms\FormForgotPassword.cs 84
2- Error CS1061 'object' does not contain a definition for 'GetUserNamePassword' and no accessible extension method 'GetUserNamePassword' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) Organization Manager C:\Users\Abdu Mohamed\source\repos\Organization Manager\Organization Manager\Pal\Forms\FormForgotPassword.cs 85

3- Error CS1061 'object' does not contain a definition for 'IsValidNamePass' and no accessible extension method 'IsValidNamePass' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) Organization Manager C:\Users\Abdu Mohamed\source\repos\Organization Manager\Organization Manager\Pal\Forms\FormLogin.cs 72.



2 years ago