title: Button background image changes on mouseover and mousedown events
body: <p>I am creating a windows forms application and I want the background image of <code>button5</code> to change on mouseover and mousedown events. The images in resources are "1.jpg" and "2.jpg".
  When I have the cursor over the button I want "2.jpg" as background image and "1.jpg" otherwise.<br>
  I don't get any errors. I use this code:</p>
  
  <pre><code>public Form1()
      {
          InitializeComponent();
          button5.MouseEnter += new EventHandler(button5_MouseEnter);
          button5.MouseLeave += new EventHandler(button5_MouseLeave);
      }
  
  
      void button5_MouseLeave(object sender, EventArgs e)
      {
          this.button5.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._1));
      }
  
  
      void button5_MouseEnter(object sender, EventArgs e)
      {
          this.button5.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._2));
      }
  </code></pre>
  
  <p>What seems to be the problem ? Should i use something else to do this?<br>
  I would also want to know how do i completely remove the border of a button.</p>
  
  <p>Thanks a lot!<br>
  Vlad</p>