Today ,we will discuss about focus on New line in TextBox in C#.Net
Select Multiple Line option in the TextBox.
Call this Code in your TextBox KeyDown Event
Select Multiple Line option in the TextBox.
Call this Code in your TextBox KeyDown Event
if (e.KeyCode == Keys.Enter)
{
(textbox name).AppendText((textbox name).Text);
}
{
(textbox name).AppendText((textbox name).Text);
}