private void doCamelCase() { if (cbTitleCase.Checked) { string newText = MainFunctions.ToCamelCase(txtNewFilename.Text); txtNewFilename.Text = newText; txtNewFilename.SelectionStart = newText.Length; txtNewFilename.SelectionLength = 0; } }