Reputation: 1198
I've created a custom menuitem using ToolStripControlHost but I wan't it to be highlighted when moused over like normal items:
Notice how the item "None" is highlighed because the mouse cusor is over it. The last item is my custom control which isn't highlighted if I mouse over it. Its made of a label and a textbox.
I've tried directly calling OnMouseEnter() and OnMouseLeave() of the control host whenever the label is moused over but that doesn't work.
Anyone succedded in doing this? Or am I going to be forced to write all my own rendering code? I was hoping there was a simple way to do it.
Upvotes: 2
Views: 418