I have an application with 20 textboxes, i need to do the calculations for example ((TextBox12 * TextBox1 * TextBox7) / 2) and display the result on label when clicking a button.
Ive usually done these like this:
private void lBtn_Click(object sender, EventArgs e) { double L, L2; if (double.TryParse(kTb1.Text, out L) && double.TryParse(kTb2.Text, out L2)) lBl4.Text = String.Format("{0:f1}", (L2 * L)); else MessageBox.Show("WTF } [/CODE]
I was wondering if there is better way to do this so that I don't have to add all 20 textboxes into this with && double.TryParse?
@margrave I'd say this is system specific; I've not heard anyone else complain about their desktop icons changing following a Windows Update, and it reads rather odd.
Have you checked display scaling, could that be the culprit?
My reading of the article text above is that your system won't explode if you deleted the folder, but it's purpose is to protect against a security exploit. The folder has specific access permissions, so use the PowerShell script Microosft has provided.
The first generation of iPhones had Java 2 Mobile Edition (J2ME) support (ok ok JVM support) which was the same framework/version that Android and BlackBerry and PalmOS all ran on (in addition to their Linux roots) which increased the prospect of third-party developer integrations on the platform. The way in which Apple was able to veer in a different direction with their iOS (hint: native Objective-C) than how Android and BlackBerry evolved (hint: Java) is part of their engineering legacy.
The performance hit is so pronounced that even Android is reengineered for Kotlin rather than traditional Java programming.
Question
Joni_78
Hi,
I have an application with 20 textboxes, i need to do the calculations for example ((TextBox12 * TextBox1 * TextBox7) / 2) and display the result on label when clicking a button.
Ive usually done these like this:
I was wondering if there is better way to do this so that I don't have to add all 20 textboxes into this with && double.TryParse?
Link to comment
https://www.neowin.net/forum/topic/1083591-c-calculating-textbox-values/Share on other sites
17 answers to this question
Recommended Posts