c# - Change BackColor of ToolStripItem on Mouse Over -
this question has answer here:
- how change menu hover color 3 answers
so have menustrip in c# trying darkish theme for, when press button dropdown menu well....

is there way make go white color? can't seem figure out way it. first time customizing context menus.
you use mousehover , mouseleave event. it's easy. following steps:
we have form these items: http://s3.picofile.com/file/8188577184/capture.jpg
choose dark backcolor toolstripmenuitem. choosed
blackcolorfiletoolstripmenuitemin example.use
mousehoverevent:private void filetoolstripmenuitem_mousehover(object sender, eventargs e) { filetoolstripmenuitem.backcolor = color.white; filetoolstripmenuitem.forecolor =color.black; }use
mouseleaveevent:private void filetoolstripmenuitem_mouseleave(object sender, eventargs e) { filetoolstripmenuitem.backcolor = color.black; filetoolstripmenuitem.forecolor = color.white; }
Comments
Post a Comment