Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27233

Transparent Button Background On Mouse Enter

$
0
0
I have created a circle button with transparent corners, I set the properties to backColor as transparent, FlatStyle is Flat and I have selected my background image. Now, I have coded the MouseEnter event to change background image, which works fine, except it gets a plain white background behind it! I have tried everything to stop this, including setting the same properties as the original image into the code:

Code:

        btnNext.BackColor = Color.Transparent
        btnNext.BackgroundImage = My.Resources.Next_Arrow_Over
        btnNext.FlatStyle = FlatStyle.Flat

Which doesn't work! Does anyone have any idea how to get the background image transparent when the mouse hovers over the button?

Thanks,
Tom.

Viewing all articles
Browse latest Browse all 27233

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>