title: Calculate and display the final value in Textbox
body: <p>I am very new to c# , and i am trying to do a mathematical calculation using tow or more fields in my win form application , and i am trying to show the result in a text box when the link table is clicked , although his programme is not showing any error in visual studio , i am not getting the updated value in my textbox , (that is no changes happening when i click the link label) , kindly go through my below programme and guide me where i am wrong:</p>
  <pre><code>private void TSCalc_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
          {
              try
              {
                  if(materialTypeComboBox.Text == &quot;ABC&quot; &amp;&amp; unitComboBox.Text == &quot;XYZ&quot;)
                  {
                      float a = float.Parse(frontWtTextBox.Text);
                      float b = float.Parse(backWtTextBox.Text);
                      float c = (a / b) / 2;
                      float d = float.Parse(cFComboBox.Text);
                      float g = (c * d);
                      decimal f = (decimal)Math.Sqrt(g);
                      tSTextBox.Text = Decimal.Round(f, 2).ToString(&quot;0.00&quot;);
                  }
              }
              catch(Exception ex)
              {
                  MessageBox.Show(&quot;Saving Failed:&quot; + ex.Message.ToString(), &quot;Save&quot;,
                       MessageBoxButtons.OK, MessageBoxIcon.Error);
              }
          }
  </code></pre>