sravanti rachala
I was trying to create a form similar to notepad using rich text box . when I selected a part of text and try to delete it using richtextbox1.delete(); command the entire text was getting deleted . I tried using richtextbox1.selectedtext.remove(); it dint work. please help.
By sravanti rachala in ASP.NET on Jul 19 2011
  • sravanti rachala
    Aug, 2011 4

    Mr.Parvez Mulla : Thanks for your suggestion . But i used rich text box since i wanted to design my form like a notepad and rich text box would make my program easy.

    • 0
  • Parvez Mulla
    Aug, 2011 4

    Instead of using richtextbox you use textbox and set the property of multiline = true; it's easy to use for all code

    • 0
  • sravanti rachala
    Jul, 2011 28

    Thank You all.

    It was very help full

    • 0
  • nadeem janu
    Jul, 2011 22

    you just use.
    private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
            {
                this.richTextBox1.Cut();
            }

    M.Nadeem

    • 0
  • nadeem janu
    Jul, 2011 22

    you just use

                private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
            {
                this.richTextBox1.Cut();
            }

    M.Nadeem

    • 0
  • vindy
    Jul, 2011 20

    just replace the selected text with empty string..

    richtextbox1.selectedtext = "";


    • 0
  • Balaji Gurunathan
    Jul, 2011 20

    Can you explain how you selected the text?

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS