how to selcet text in additon to selected text?

Posted 23 October 2008 - 06:04 AM

hi,i hope that this is possible,i need to know how can i select text in addition to a selected text.
if i have a richtextbox and i use rtb.find("something").it will select it.
now i want to know how can i make it select the found text and some text before it and some text after it till the end of the line except 2 characters?
i want to use it for 4shared to type the link of 4hared media link to a textbox and it will show the code of the page and find the link and start playing or downloading it.
i hope i am clear enough this time.
oh i was about to forget,i have an axwinmediaplayer,i have and open file dialog box in the form,when i open file there, i can add the played file as an item there.i click on it and it is played.i can add the location of each file imported by the openfiledialog into the list textbox.how can i ust add the file name?and how can i remove selected items from list box?and how can i save what is in the listbox and load it again when the form is loaded?and how can i save or load text files that is in the recources?
i hope i will find some answers to some of the questions.
Thanks in advance.