internal static void TabKeyUp(Form1 form) { ToolStripStatusLabel rowToolStripStatusLabel1 = form.rowToolStripStatusLabel1; CustomRichTextBox pageTextBox = ProgramUtil.GetPageTextBox(form.pagesTabControl.SelectedTabPage); rowToolStripStatusLabel1.Text = (TextManager.ReadRTBLineFromCharIndex(form, pageTextBox.GetFirstCharIndexOfCurrentLine()) + 1).ToString(); }