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

S Mfelase (22322462) 0 Reputation points
2023-10-16T08:37:20.4033333+00:00
public partial class frmLandlordLogin : Form
    {
        public frmLandlordLogin()
        {
            InitializeComponent();
        }

        private void btnBack_Click(object sender, EventArgs e)
        {
            frmLandlordLogin landlordLogin = new frmLandlordLogin();
            landlordLogin.Show();
            Close();
        }

        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;

            MessageBox.Show(objL.validate());

        }
    }
}
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
    2023-10-17T07:33:32.6766667+00:00

    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,

    Jiale


    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