© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
16 replies
Nikolaaa

Why is not this button working?

        private void signinbtn_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(nameTxt.Text))
            {
                authTxt.Text = "Failed to authenticate." +
                    "Username can not be empty.";

            }
            else
            {
                if (String.IsNullOrEmpty(PassTxt.Text))
                {
                    authTxt.Text = "Failed to authenticate." +
                        "Password can not be empty.";

                }
                else
                {

                    authTxt.Text = "Success!";
                    //add code here!



                }
            }
        private void signinbtn_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(nameTxt.Text))
            {
                authTxt.Text = "Failed to authenticate." +
                    "Username can not be empty.";

            }
            else
            {
                if (String.IsNullOrEmpty(PassTxt.Text))
                {
                    authTxt.Text = "Failed to authenticate." +
                        "Password can not be empty.";

                }
                else
                {

                    authTxt.Text = "Success!";
                    //add code here!



                }
            }

when I click Sign In nothing happens, why?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Why is this var not working?
C#CC# / help
4y ago
✅ Why is it not working
C#CC# / help
11mo ago
✅ Why is rng not working?
C#CC# / help
4y ago
Why is dotnet run not working?
C#CC# / help
12mo ago