Be.Windows.Forms.HexBox.OnMouseDown C# (CSharp) Method

OnMouseDown() protected method

Raises the MouseDown event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs An EventArgs that contains the event data.
return void
        protected override void OnMouseDown(MouseEventArgs e)
        {
            //System.Diagnostics.Debug.WriteLine("OnMouseDown()", "HexBox");

            if (!Focused)
                Focus();

            if (e.Button == MouseButtons.Left)
                SetCaretPosition(new Point(e.X, e.Y));

            base.OnMouseDown(e);
        }
HexBox