coming across a slight problem with the MouseEnter or MouseHover Events,cant seem to get the code correct...getting the BackColor of the Button to change when the Cursor goes over the button..
VB Code:
private void button1_OnMouseEnter(object sender, MouseEventArgs e) { base.OnMouseEnter(e); if (button1.BackColor == Color.Black) button1.BackColor = Color.DarkBlue; else base.OnMouseLeave(e); button1.BackColor = Color.Black; } // I'v tried this serveral different ways version 2 protected override void OnMouseEnter(EventArgs e) { base.OnMouseEnter(e); button1.BackColor = Color.DarkBlue; } protected override void OnMouseLeave(EventArgs e) { base.OnMouseLeave(e); button1.BackColor = Color.Black; }
I also tried using the "protected override void"





Reply With Quote