Label FlatStyle.Popup

  • Thread starter Thread starter Antonio Barros
  • Start date Start date
A

Antonio Barros

Hi

I'm trying to put the popup effect that happens in a button on a label. This
property
(FlatStyle.Popup) is too a label property.
I made test windows form program, and i just put one button and one label.
I modified the FlatStyle of both to Popup. When i run the program and i pass
the mouseover the button i see the effect functioning. On the label no.
Why ?

Thank you
A.Barros
 
Antonio,

I've gotten the same results. I think that if you want this effect, you
will have to use a button and override the mouse down event (or rather, the
windows message for the mouse down event), so that it does not trigger a
click when it is clicked (which would cause a repaint). This way, you get
the style that you want, without the click functionality.

Hope this helps.
 
Back
Top