Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Textbox unreachable code

$
0
0

I want to do:

        private void textBox3_Click(object sender, EventArgs e)
        {
            if (true)
            {
                this.textBox3.Clear();
            }
            else
            {
                this.textBox3.ResetText();
            }
        }

But  in the else statement, this.textBox3.ResetText(); is giving unreachable code.


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>