Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB VB10.0 VB.NET
Hi,
 
I want to make a round status strip button. I have the images for the various states (normal, mouse hovering (highlighted) and clicked (a bit darker). How do I do this?
 
Thanks,
Rahul
Posted 27-Dec-12 1:35am
gcode11.5K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The easiest way is to use an image format that supports transparency: PNG is a good one. Use your favourite graphics program to make the area outside the circle transparent, and you are done.
 
There are alternatives, like setting the Region property for the button to the required circle, but they are a lot more complex, and can give bad results if you do not keep the code in step with the images.
 
I use the transparent method myself.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I have the images ready in PNG. All I need to do now is to implement them. Should I add a normal button and change some properties or something?
 
Thanks
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 402
1 Nirav Prabtani 258
2 Richard Deeming 250
3 _Amy 195
4 CHill60 175
0 Nirav Prabtani 265
1 OriginalGriff 177
2 _Amy 170
3 Mehdi Gholam 105
4 Maciej Los 90


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100