button background image changes on mouseover and mousedown events
I am creating a windows forms application and i want the background image of button5 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.
i dont't get any erros. I use this 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));
        }

What seems to be the problem ? Should i use something elese to do this?
I whould also want to know how do i completely remove the border of a button.

Thanks alot!
Vlad
button background image changes on mouseover and mousedown events
===

I am creating a windows forms application and i want the background image of button5 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.
i dont't get any erros. I use this 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));
        }

What seems to be the problem ? Should i use something elese to do this?
I whould also want to know how do i completely remove the border of a button.

Thanks alot!
Vlad