Featured Post

Smart Product designer

Image
download and purchase link: https://alkanyx.com/item/49/Smart+Product+designer

Live preview : http://smartproductdesigner.000webhostapp.com/

Smart Product Designer is a  tool to create your own product and get directly from your website. It is well documented, very easy to customize and use. It is build using most advance technologies including javascript, jQuery and html5.
Features Choose different product from collectionAdd custom texts to product.Change text colorChange the size and font of the TextLet the user drag, move or remove elementsAdd images to product selected from art gallery or browse it from systemDesign both frontside and back-sideShows preview while designingDownload designVery easy to customize and useHere is the purchase link : https://alkanyx.com/item/49/Smart+Product+designer

Drawing a dotted circle using C#.NET windows form

Dotted circle can be used for showing circular progress. Here is the code to draw a dotted/dashed circle using C# in windows form application:



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Threading;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int angle = 0;
        int Startangle = 0;
        private void Form1_Load(object sender, EventArgs e)
        {
                       
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {
            //draw a dashed cricle
            using(Graphics g = panel1.CreateGraphics())
            {
                System.Drawing.Rectangle rectangle = new System.Drawing.Rectangle(5, 5, 200, 200);
                g.SmoothingMode = SmoothingMode.AntiAlias;
                var dottedPen = new Pen(new SolidBrush(Color.FromArgb(255, 51, 51)), 10) { DashPattern = new[] { 0.5f, 0.5f } };
                g.DrawArc(dottedPen, rectangle, Startangle, angle);                
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            new Thread(() =>
                {
                    for (int i = 1; i <= 360; i++)
                    {
                        Startangle = 0;
                        angle++;                        
                        Thread.Sleep(10);
                        panel1.Invalidate();
                    }
                }).Start();
        }
    }
}



Comments