How to replace a word on richtextbox

hi
how can i replace a word in one richtext box by code?
like i have the richtexbox with the word TEST and i wanna to replace that word (TEST) by DONE for example

how can i replace a word in one richtext box by code?
Use the string Replace function with the rich text box Text property:
RichTextBox1.Text = RichTextBox1.Text.Replace("TEST", "DONE")

Similar Messages

  • How to replace a word thr shell script

    Hi,
    I need a shell script which should read a file(a.txt)
    and need to update the same file( means only replace a word with another one in the same file)
    my unix version is SunOS and i am using ksh
    could you pls provide me some better way.
    My failured trails are as below
    suppose a.txt file having data like,
    column1 column2 column3
    data1 data2 data3
    and my script is,
    #!/usr/bin/ksh
    patha=/tmp
    filea=a.txt
    sed '/column2/s//column4/g' $patha/$filea > $patha/$filea
    And also pls provide how to add data(data into new line) into file(a.txt)
    Thanks in advance.

    This is an Oracle SQL and PL/SQL forum.
    If you want to learn how to write unix shell scripts I suggest you search the internet for a suitable unix forum.

  • How to replace a word or line in a word document in CVI

    I am trying to edit a word document using activeX in CVI. I want to search for a word and replace it with another. I couldn't find any functions which does the replace in wordreport.c. Could you please help me out?

    Hi Isn,
    You
    will want to use the Microsoft Word 9.0 Object Library to interface
    with Microsoft Word.  You could then potentially be able to use the ActiveX calls
    provided to accomplish your goal.  The specifics on how to do this
    should be found in Microsoft's Documentation.
    Refer to the Microsoft document entitled How to find and use Office object model documentation. In your case, you will be looking at the Vbawrd9.chm help file which I believe will be located in the C:\Program Files\Microsoft Office\OFFICE\1033\ directory.
    Also refer to the Unable to Load Microsoft Excel/Word Help in LabWindows/CVI KnowledgeBase.
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • How to replace first word after x in every line?

    Hi
    i have a a script which creates many tables/indexes each with diffrent INITIAL value.
    I need to grep for word INITIAL and replace the first word after initial ( which is number ) with 50K. how can i do this?
    some sample entries are
    INITIAL 2097152
    INITIAL 458752
    Thanks

    thanks for the reply , I tried but nothing seems to be happening ..
    [oracle@node1 DEV]$ perl -pi -e 's/^INITIAL \d+/INITIAL 50k/' b.log
    [oracle@inode1 DEV]$
    [oracle@node1 DEV]$ perl -v
    This is perl, v5.8.8 built for x86_64-linux-thread-multi
    Copyright 1987-2006, Larry Wall
    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.
    Complete documentation for Perl, including FAQ lists, should be found on
    this system using "man perl" or "perldoc perl". If you have access to the
    Internet, point your browser at http://www.perl.org/, the Perl Home Page.
    Thanks

  • How do I find and replace a word in PDF?

    How do I find and replace a word in PDF?

    In the Find window (Ctrl+F) there's an option to replace the searched text.
    This is in Acrobat XI, and there's no Replace All-function.
    On Thu, Jan 15, 2015 at 4:27 PM, claireb88184899 <[email protected]>

  • How To: Find and replace multiple words in one Click ?

    I have an file with about 150 Pages where I want to replace a word about 500 time by one click.
    Find and Replace works but only with one word.
    How can I do it by one click ?

    You can't, not in Acrobat anyway.
    This is the kind of thing that should be done in the original file format,
    not in a PDF.

  • Since I am writing the book in Italian,how can I replace the word CHAPTER with CAPITOLO ?

    Since I am writing the book in Italian, how can I replace the word CHAPTER with CAPITOLO ?

    I think you need to run iBA in Italian so the templates are in that language.  You can do that by switching your OS X to Italian and then reopening iBA or perhaps by using this app to just change the iBA language:
    http://www.tj-hd.co.uk/en-gb/languageswitcher/
    see also
    https://discussions.apple.com/message/20745332#20745332

  • How to replace text in selected cells in Numbers 3?

    I want to replace a few words in Numbers 3, but I can't find where I can limit the replacement within chosen cells.
    In previous version, there was a drop down list I can choose to limit the replacement to chosen cells or current sheet.
    But now when I use replace all, it will replace all words in all sheets.
    Anyone knows how to do it?
    Thanks!
    Allan

    The Find Replace in Selection Automator Service (Dropbox download) can do what you want.
    To install, double-click the .workflow package and, if necessary, click 'Open Anyway' in System Preferences > Security & Privacy.
    To use, make your selection in a table, then choose Find Replace in Selection from the Numbers > Services menu.
    SG

  • How to replace a character in a string with blank space.

    Hi,
    How to replace a character in a string with blank space.
    Note:
    I have to change string  CL_DS_1===========CM01 to CL_DS_1               CM01.
    i.e) I have to replace '=' with ' '.
    I have already tried with <b>REPLACE ALL OCCURRENCES OF '=' IN temp_fill_string WITH ' '</b>
    Its not working.

    Hi,
    Try with this..
    call method textedit- >replace_all
      exporting
        case_sensitive_mode = case_sensitive_mode
        replace_string = replace_string
        search_string = search_string
        whole_word_mode = whole_word_mode
      changing
        counter = counter
      exceptions
        error_cntl_call_method = 1
        invalid_parameter = 2.
    <b>Parameters</b>      <b> Description</b>    <b> Possible values</b>
    case_sensitive_mode    Upper-/lowercase       false Do not observe (default value)
                                                                       true  Observe
    replace_string                Text to replace the 
                                         occurrences of
                                         SEARCH_STRING
    search_string                 Text to be replaced
    whole_word_mode          Only replace whole words   false Find whole words and                                                                               
    parts of words (default                                                                               
    value)
                                                                               true  Only find whole words
    counter                         Return value specifying how
                                        many times the search string
                                        was replaced
    Regards,
      Jayaram...

  • How oracle replaces "carrage return, tab and blank" in v$sql.sql_text??

    Hi. all.
    I am wondering how oracle replace "carrage return, tab and blank" character to v$sql.sql_text??
    I am try to find sql_id by the following query.
    select * from v$sql where sql_text like 'blur blur %'.
    However, how can I specify 'blur blur %' when the original sql text includes "carrage return, tab, amd double blank"?
    To be more specific,
    the original sql statement:
    select
    col_a,
    col_b , -- tab character included
    colc , -- more than one blank included
    Then, how can I specifiy "sql_text like 'blur blur %'" ??
    As far as I know, oracle replace "carrage return, tab, and more than one blank" to "ONE BLANK" character.
    Is this right???
    Thanks in advance.
    Best Regards.

    Oracle simply unformat the SQL text and put it into v$sql.sql_text because SQL formatting is only for reading and clearity purpose. It don't help to generate SQL_ID and execution plan. You may get couple of freely avilable SQL formatting tool on the internet, you can simply copy SQL_TEXT and if you paste them into those tool, they will auto format, tab, upper and lower case of required words.
    If you find this reply helpful or correct, please mark accordingly because you asked 17 questions and zero answerred. This seems that this forum is 0% useful to you! (sad)
    Regards
    Girish Sharma

  • How to replace pages, trashed by mistake, os 10.5.8 - new needs os10.6?

    How to replace pages, trashed by mistake, os 10.5.8 - new needs os10.6? Can I buy an old pages? can I down load a similar? I can open the works I saved as word documents but I didn't do it often. I need the hunderds of docments no longer available to me.

    You can get the iWork '09 DVD on Amazon.com http://www.amazon.com/Apple-MB942Z-A-iWork-VERSION/dp/B0014X2UAK/ref=sr_1_1?s=el ectronics&ie=UTF8&qid=1394158134&sr=1-1&keywords=iwork

  • How to replace number with flexible length

    Hi..
    Could somebody help me, how to replace any number start with more than 2 digits of "0" become 2 digits "0" only. As example:-
    Sample Result
    123456789 => 123456789
    0123456789 => 0123456789
    00123456789 => 00123456789
    000123456789 => 00123456789
    0000123456789 => 00123456789
    00000123456789 => 00123456789
    Thank you,
    Baharin

    Or - to handle the situation when '00' is also in between the word:
    SQL> with t as (
    select '12300456789' str from dual union
    select '0123456789' from dual union 
    select '00123456789' from dual union
    select '000123456789' from dual union
    select '0000123456789' from dual union
    select '00000123456789' from dual
    select str,
            decode(substr(str,1,2),'00', '00' || ltrim(str,'0'),str) new_str
    from   t
    STR            NEW_STR        
    00000123456789 00123456789    
    0000123456789  00123456789    
    000123456789   00123456789    
    00123456789    00123456789    
    0123456789     0123456789     
    12300456789    12300456789    
    6 rows selected.

  • Do I have to Replace Every Word doc with a New Pages doc?

    Everytime I open an old Word document (I now use Pages exclusively) in Pages, I have to re-save the document as a Pages document. The old Word file stays on my computer, as I'm creating something new, a Pages document. I now am left with two files: the old Word file, and the new Pages file. Is there some sort of "batch" operation, a way to convert ALL my word files on my HD into Pages files?
    Or (more realistically) is there a way to have Pages automatically REPLACE the Word file with the new Pages file, so that I'm left with 1 new file, not 1 old and 1 new.
    Thanks a lot,
    Lee

    The difference between the two files is that one's extension is .doc and the other's is .pages. So, for the Pages document to replace the Word document, it's name would need to be "Testdoc.doc" instead of "Testdoc.pages" as it would normally save. This may cause problems in the future since .doc isn't a Pages document, so that wouldn't be something you'd want to do for documents you intend to keep.
    It seems that Automator would be a good choice for this, but I don't know enough about Automator to be able to say if it can be done or how to do it.

  • How to replace Insert key? Need for Maya!!!

    Hi, I've just bought MBP 2.16 Ghz, 100 Gb 7200rpm, 2 Gb RAM for graphic prog-s a. animation. But there is no INSERT key on my keyboard, which I really need for Alias Maya.
    Does anybody know how to replace the INSERT key with key combinations or somehow?
    tnx
    Mac Book Pro   Mac OS X (10.4.6)   2.16 Ghz, 2 Gb RAM

    I think... and I use the word think loosely...
    That you can go into system prefs --> keyboard & mouse --> keyboard shortcuts and add the function you want... it can be overall for the OS, or it can be specific for the application.
    I hope that works for you.
    My external keyboard doesn't even have "insert"... so it may not be possible

  • How do I translate word perfect old files for my new iMac?

    How do I translate Word Perfect old files for my new iMac?  They are transferred from a 13-year-old Dell.  My McLink did not work.
    Thanks.

    The current version of the free LibreOffice continues to support Word Perfect documents. OpenOffice had to drop this support due to licensing issues. LO installs in two places: /Applications and your local Library/Application Support directory. Simple to install. Simple to remove. Good PDF documentation from their site. It is a capable MS Office replacement.
    I just opened a wpd legal deposition in LO and it looked fine.

Maybe you are looking for