Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF conditional coding
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
IF conditional coding
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01046886
Message ID:
01046886
Views:
69
I am new to C#, off and on for a couple years.

I am trying to make a label visible by using a check box, but I cannot seem to figure out how to code it.

Here's my code, but it doesn't work:
        private void titleCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            if (this.titleCheckBox.Checked = true)
            {
                this.titleLabel.Visible = true;
            }
            else
            {
                this.titleLabel.Visible = false;
            }

        }
Next
Reply
Map
View

Click here to load this message in the networking platform