how to fix a code that has several errors in the gold bar on top

S Mfelase (22322462) 0 Reputation points
public partial class frmLandlordLogin : Form
        public frmLandlordLogin()

        private void btnBack_Click(object sender, EventArgs e)
            frmLandlordLogin landlordLogin = new frmLandlordLogin();

        private void btnLogin_Click(object sender, EventArgs e)
            string username, password;

            username = txtLandlordNum.Text;
            password =txtPassword.Text;

            Landlordpage objL = new Landlordpage(username, password);
            objL.propUsername = username;
            objL.propPassword = password;


i compiled different code for form and now it has the gold bar on the top as an errors
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,857 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jiale Xue - MSFT 37,136 Reputation points Microsoft Vendor

    Hi @S Mfelase (22322462) , Welcome to Microsoft Q&A,

    i compiled different code for form and now it has the gold bar on the top as an errors

    Try using clean to clear out cluttered builds.

    enter image description here

    For each error or reminder, there will be an explanation below. You can quickly resolve them using ALT+Enter.

    You can screenshot and copy your error into the question for further help.

    Best Regards,


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments