Example #1
0
        private void Editor_TextBox_SelectionChanged(object sender, EventArgs e)
        {
            Point pt = Editor_TextBox.GetPositionFromCharIndex(Editor_TextBox.SelectionStart);

            if (pt.X == 1)
            {
                AddLineNumbers();
            }
        }
Example #2
0
        private void JsonEditor_UserControl_Resize(object sender, EventArgs e)
        {
            Editor_TextBox.Size = new Size(this.Width - 43, this.Height - 38);
            tB_line.Size        = new Size(tB_line.Width, this.Height - 38);

            Point pt = Editor_TextBox.GetPositionFromCharIndex(Editor_TextBox.SelectionStart);

            if (pt.X == 1)
            {
                AddLineNumbers();
            }
        }