void onClick(object sender, EventArgs e) { Point mousep = System.Windows.Forms.Cursor.Position; mousep = picbox.PointToClient(mousep); cursor.Click(mousep); Refresh(); }
private void pictureBox1_Click(object sender, EventArgs e) { Point mousep = System.Windows.Forms.Cursor.Position; mousep = this.pictureBox1.PointToClient(mousep); cursor.Click(mousep); Refresh(); MainForm main = MainForm.mainform; main.setCursorSize(this.chip_size); main.ChipSelectorClicked(this); }