Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If statement being bypassed in LEAVE event
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
If statement being bypassed in LEAVE event
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01053400
Message ID:
01053400
Views:
44
My if condition is never true. I think that I am converting the TextBox.Text property to a decimal value by using the decimal.Parse( ) method, but it does nto work. So, I must be wrong. Anyone see a glaring problem here?

You know, for me, this is a whole lot easier to debug in Visual FoxPro.

Cecil
        private void basePriceTextBox_Leave(object sender, EventArgs e)
        {
            if (decimal.Parse(this.basePriceTextBox.Text) > 1)
            {
                this.stereoCheckBox.Enabled = true;
                this.leatherInteriorCheckBox.Enabled = true;
                this.computerNavigationCheckBox.Enabled = true;
            }

        }
Next
Reply
Map
View

Click here to load this message in the networking platform