Pie Ashoka Chakra

A Beautiful 360 pie Chakra looks like Ashoka Chakra.


//In Forms Paint Event
Graphics g = e.Graphics;
//x = 360 to create a circle
int x = 360;
do
{
//FillPie fills pie with color ,width,height
g.FillPie(Brushes.DarkBlue, this.Width / 4, 0, this.Width / 2, this.Height, x, 15);
x = x - 20;
//x-20 to give space between each pie
} while (x >= 20);

Looks Great.
You can also apply in a panel
just replace the word 'this' with 'panel1'


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: