Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. replace method

replace method

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kamalesh5743
    wrote on last edited by
    #1

    Hi all, i got problem in replacing text in richtextbox with new text. I using find and replace method,but it doesnt work.. The text will load in richtextbox when i run the system.Wht i need is just replace some text with new text in richtextbox.. Pls help me.. Thank You..

    %#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG

    L 1 Reply Last reply
    0
    • K kamalesh5743

      Hi all, i got problem in replacing text in richtextbox with new text. I using find and replace method,but it doesnt work.. The text will load in richtextbox when i run the system.Wht i need is just replace some text with new text in richtextbox.. Pls help me.. Thank You..

      %#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      And what is not working? What do you use to find and then replace? Show some code.

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4a out now (29 May 2008)

      K 1 Reply Last reply
      0
      • L leppie

        And what is not working? What do you use to find and then replace? Show some code.

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4a out now (29 May 2008)

        K Offline
        K Offline
        kamalesh5743
        wrote on last edited by
        #3

        the code i did is like this, richTextBox1.Find("XX"); richTextBox1.SelectedText = text.Replace("XX", text); The string "XX" is i load into richtextbox.Then i open external file to replace this "XX" with some text. The code i did is doesnt work.So got any other way to find solution for this case. Thank You.

        %#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG

        L 1 Reply Last reply
        0
        • K kamalesh5743

          the code i did is like this, richTextBox1.Find("XX"); richTextBox1.SelectedText = text.Replace("XX", text); The string "XX" is i load into richtextbox.Then i open external file to replace this "XX" with some text. The code i did is doesnt work.So got any other way to find solution for this case. Thank You.

          %#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          kamalesh5743 wrote:

          richTextBox1.Find("XX"); richTextBox1.SelectedText = text.Replace("XX", text);

          Try:

          richTextBox1.Find("XX");
          richTextBox1.Text = richTextBox1.Text.Replace("XX", text);

          xacc.ide - now with TabsToSpaces support
          IronScheme - 1.0 alpha 4a out now (29 May 2008)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups