I have textBox and I want when I type @
the cursor automatically go to the begin of the textbox (like you pressed the Home Button on the keyboard) I tried this code
richTextBox1.Select(0, 0);
but it's not working as I want ( like when you press the home button on keyboard ) this is the all of the code
private void RichTextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (!Char.IsLetterOrDigit(e.KeyChar))
{
richTextBox1.Select(0, 0);
checkLog = true;
}
}