How to change hover color for sfComboBox

Hi Community!


i was wondering if i can add a hover colour when you are just hovering over the sfCombobox. I know you can add a hover border color but i can't see an option for hover background color. I have added a screenshot where the first dropdown is a WinForms combobox and when you hover over it it changes border colour to dark blue and back color to light blue. this is what i am trying to achieve . Thanks in advance!




1 Reply

EM Elakkiya Muthukumarasamy Syncfusion Team June 24, 2021 12:54 PM UTC

Hi Mohammed Shafeel, 
 
Greetings from syncfusion. 
 
We have checked your reported query “Need to change the hover background color of SFComboBox” and found that to change the hover background color of SFComboBox you can use the below property as shown below 
 
Code example: 
 
sfComboBox1.MouseHover += SfComboBox1_MouseHover; 
sfComboBox1.MouseLeave += SfComboBox1_MouseLeave; 
 
 
private void SfComboBox1_MouseLeave(object sender, EventArgs e) 
{ 
sfComboBox1.BackColor = Color.White; 
} 
 
private void SfComboBox1_MouseHover(object sender, EventArgs e) 
{ 
 
sfComboBox1.BackColor = Color.Pink; 
} 
 
Output: 
 
 
 
Kindly try this solution and let us know if it is helpful. 
 
Regards, 
Elakkiya 


Loader.
Up arrow icon