Hi,
The problem is that,
Am using a bitmap image and i want to click that image and place it to other location on the same form during run time, as well as use the drag and drop option, and also that image should be kept in buffer until i choose other image.
all this at run time using windows forms.
g.DrawImage(Image.FromFile("D:\\ccu\\symbols\\bitmap1.bmp"),20,145);
the above code is wat am using to call the image.
is ther any other way i can call it.

please help me out wit this.

You can also store the image in memory:

public partial class frmFormPaint : Form
  {
    private Image img;

    public frmFormPaint()
    {
      InitializeComponent();
    }

    protected override void OnPaint(PaintEventArgs e)
    {
      base.OnPaint(e);
      if (img != null)
        e.Graphics.DrawImage(img, 20, 145);
    }

    private void button1_Click(object sender, EventArgs e)
    {
      img = Image.FromFile(@"C:\picture.bmp");
    }
  }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.