title: Attempting to run a textbook C# WFA program. Form not displaying result
body: <p>im new to using this site, and im also VERY new to programming (freshman for programming school)</p>
  
  <p>Heres the thing, im doing an assignment for class, which is essentially to write this code for a windows form application to calculate some simple stuff. Easy enough, but ive entered the code exactly, and every time i use the 'yes' or 'no' buttons on my form, nothing generates. Ill post my code and also my program being run, and i hope someone might be able to help me. The answer could be obvious, im just still a novice. Thanks in advance!</p>
  
  <hr>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  namespace LoopingBankBalGUI
  
  {
  
      partial class Form1 : Form
      {
          double bankBal = 1000;
          const double INT_RATE = 0.04;
          private void yesButton_Click(object sender, EventArgs e)
          {
              outputLabel.Text += String.Format("Bank balance is {0}\n",
                  bankBal.ToString("C"));
              bankBal = bankBal + bankBal * INT_RATE;
          }
          private void noButton_Click(object sender, EventArgs e)
          {
              outputLabel.Text = "Have a nice day!";
          }
  
          public Form1()
          {
              InitializeComponent();
          }
  
          private void Form1_Load(object sender, EventArgs e)
          {
  
          }
      }
  }
  </code></pre>
  
  <p>This is a picture of my form itself:</p>
  
  <p><img src="https://i.stack.imgur.com/2euFn.png" alt=""></p>