private void AddTags(int r, int jiao, int jiao2, int i, string icon, string name, int readerx, int readery) { double x, y; //double r = 100; //int jiao = 0; //int jiao2 = 120; //10 as the qty //for (int i = 0; i < 10; i++) //{ x = r * Math.Cos(jiao + i * jiao2) + readerx; y = r * Math.Sin(jiao + i * jiao2) + readery; int xx = int.Parse((Math.Round(x)).ToString()); int yy = int.Parse((Math.Round(y)).ToString()); UCTag mytag = new UCTag(icon, name); // PictureBox mytag = new PictureBox(); // mytag.Image = im; mytag.AutoSize = true; mytag.Tag = "Tag"; mytag.BackgroundImageLayout = ImageLayout.Stretch; mytag.Location = new System.Drawing.Point(xx, yy); // mytag.Name = name.Split(',')[0].ToString(); mytag.Size = new System.Drawing.Size(25, 35); mytag.BackColor = Color.Transparent; this.panel1.Controls.Add(mytag); mytag.BringToFront(); //System.Windows.Forms.TextBox textBox3; //textBox3 = new System.Windows.Forms.TextBox(); //textBox3.Location = new System.Drawing.Point(xx, yy); //textBox3.Name = "textBox1"; //textBox3.Size = new System.Drawing.Size(27, 20); //textBox3.TabIndex = 0; //textBox3.BackColor = Color.Red; //this.Controls.Add(textBox3); //} }