/// <summary> /// Will set selection box and focus to cell content text box /// when form is first shown /// </summary> private void HandleFirstShown() { // Set selection box on start up to A1 or 0,0 FormSpreadsheetPanel.SetSelection(0, 0); // Set focus CellContentTextBox.Focus(); }
/// <summary> /// Updates the text of given SpreadsheetPanel and focuses on enter content text box /// </summary> /// <param name="ss">A SpreadsheetPanel</param> private void UpdateTextBoxesAndFocus(SpreadsheetPanel ss) { UpdateTextBoxes(ss); CellContentTextBox.Focus(); // Focus on cell content text box }
void SetFocusToContentInput(SpreadsheetPanel s) { CellContentTextBox.Focus(); }