![]() |
| ||
| button background colour on mouse enter event I trying to create some, what i thought, simple rollover buttons. everything works fine except that the background colour on the mouse enter is always different to what i set. I have tried all the different flat settings on if set to 'flat' the background colour allways appears different despite to to directly set the colour - if i set the flat to 'popup' then the background colour changes fine but the borders go all funny on the mouse enter. I just wondered if anyone had any ideas - my button code is below cheers Private Sub Button5_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button5.MouseEnter |
| ||
| Re: button background colour on mouse enter event I tried your code and it changes bg-color just fine. I changed FlatStyle.Flat and bg-color still changes fine. If you set FlatStyle.Flat, have you checked FlatAppearance properties (borders & colors)? It seems FlatAppearance properties are design time props and are ReadOnly in the run-time. Anyway, changing FlatAppearance may solve your problem. |
| ||
| Re: button background colour on mouse enter event ideal - ill give it a go and let you know how i get on! thanks |
| All times are GMT -4. The time now is 5:57 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC