Interviews7 answers
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.
7 Answers
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.
sravanti rachalaPosted Aug 4, 2011, 6:03 AM EDT
Instead of using richtextbox you use textbox and set the property of multiline = true; it's easy to use for all code
Parvez MullaPosted Aug 3, 2011, 9:51 PM EDT
Thank You all.
It was very help full
sravanti rachalaPosted Jul 28, 2011, 6:59 AM EDT
you just use.
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
{
this.richTextBox1.Cut();
}
M.Nadeem
nadeem januPosted Jul 22, 2011, 10:39 AM EDT
you just use
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
{
this.richTextBox1.Cut();
}
M.Nadeem
nadeem januPosted Jul 22, 2011, 10:36 AM EDT
just replace the selected text with empty string..
richtextbox1.selectedtext = "";
vindyPosted Jul 20, 2011, 3:03 AM EDT
Can you explain how you selected the text?
Balaji GurunathanPosted Jul 19, 2011, 10:10 PM EDT