Example #1
0
        void onClick(object sender, EventArgs e)
        {
            Point mousep = System.Windows.Forms.Cursor.Position;

            mousep = picbox.PointToClient(mousep);
            cursor.Click(mousep);
            Refresh();
        }
Example #2
0
        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);
        }