hello,
private void panel1_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
ColorDialog cd = new ColorDialog();
if (cd.ShowDialog() == DialogResult.OK)
{
this.panel1.BackColor = cd.Color;
}
}
private void panel1_MouseDown(object sender, MouseEventArgs e)
{
panel1.DoDragDrop(panel1, DragDropEffects.Copy);
}
private void panel2_DragDrop(object sender, DragEventArgs e)
{
Control ctrl = e.Data.GetData(e.Data.GetFormats()[0]) as Control;
if (ctrl != null)
{
ctrl.Location = this.panel2.PointToClient(new Point(e.X, e.Y));
this.panel2.Controls.Add(ctrl);
}
}
private void panel2_DragOver(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Copy;
}
plz help me where is my mistake.
i want only panel1 color to on panel2 or simultainesouly.