i am using the following code
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;
namespace GIS_assignment
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void pictureBox1_Click(object sender, EventArgs e)
{
//this.PointToClient(Cursor.Position);
int x = Cursor.Position.X , y = Cursor.Position.Y;
label1.Text = x.ToString();
label2.Text = y.ToString();
}
}
}
but the problem is that is taking screen coordinates not the picturebox.But i want coordinates of picturebox not the screen,
please help.
thank you