private void ImageBox_DragDrop(object sender, DragEventArgs e) { Graphics g = ImageBox.CreateGraphics(); g.DrawImage((Image)e.Data.GetData(DataFormats.Bitmap), new Point(e.X - this.Left, e.Y - this.Top - 150)); Point p2 = PointToClient(Cursor.Position); Label buttlbl_0 = new Label(); buttlbl_0.Location = new Point(p2.X, p2.Y); buttlbl_0.Size = new System.Drawing.Size(37, 37); buttlbl_0.BackColor = System.Drawing.Color.DarkGray; this.Controls.Add(buttlbl_0); buttlbl_0.BringToFront(); ImageBox.Invalidate(); } }
Name
Controls
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)