How to Change the Full Color Label Background When Hover Mouse in C #

advertisements

I can't Select label back Ground color Mouse Hover event in full length,only can select The Word length

I would like to get log out background same like username background as full width

private void label5_MouseHover(object sender, EventArgs e) {
    this.LblChange.BackgroundImage = null;
    this.LblChange.BackgroundImage = global::Flex.Properties.Resources.Mail1;
    this.LblChange.BackColor = Color.Blue;
    this.LblChange.BackgroundImageLayout = ImageLayout.Stretch;
    !
}


select the label then goto autosize and set it to false... then increase the length of the label as much as you want... then apply your above code... it'll work.. All the best...