Without access to your system, we can't really help you - there is far too little info available to be specific.
However, since that appears to by your
Form1.cs
file, it's very likely that the two lines you added are causing the problem - comment out these lines and see if the error goes away:
private object txtpassword;
private object txtpassword;
Why do you have two variables with the same name, why are they declared as
object
values, and the prefix "
txt
" generally indicates a TextBox - which means they may already exist on your form as TextBox controls - in which case the new names will also conflict with those the system added to the
Form1.designer.cs
file that it maintains and uses to display the form in Design View.