private void button1_Click(object sender, EventArgs e)
{
richTextBox1.AppendText("\r\n");
richTextBox1.Focus();
string s = "Enter ";
richTextBox1.AppendText(s + "\r\n");
richTextBox1.SelectionStart = richTextBox1.Text.Length - (s.Length +1);
richTextBox1.SelectionLength = s.Length +1;
richTextBox1.SelectionFont = new Font("Arial", 12, FontStyle.Bold);
richTextBox1.DeselectAll();
richTextBox1.SelectionStart = richTextBox1.Text.Length;
richTextBox1.SelectionLength = richTextBox1.Text.Length;
richTextBox1.SelectionFont = new Font("Arial", 12, FontStyle.Regular);
richTextBox1.DeselectAll();
}
हर बार जब कोई उपयोगकर्ता बटन पर क्लिक करता है तो मैं उस नए "एंटर" को RichTextBox के नीचे नहीं शीर्ष पर होना चाहता हूं। मैं यह कैसे कर सकता हूं?रिच टेक्स्ट बॉक्स
नए लोगों के लिए अच्छा उदाहरण – lovesall