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. Finding word in textbox

Finding word in textbox

Scheduled Pinned Locked Moved C#
tutorialquestion
5 Posts 3 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.
  • C Offline
    C Offline
    conemajstor
    wrote on last edited by
    #1

    How to find a word in textbox? thx

    nemanja

    C E 2 Replies Last reply
    0
    • C conemajstor

      How to find a word in textbox? thx

      nemanja

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      textbox1.Text gives you the text, the string class contains methods for finding text within strings.

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      C 1 Reply Last reply
      0
      • C Christian Graus

        textbox1.Text gives you the text, the string class contains methods for finding text within strings.

        Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

        C Offline
        C Offline
        conemajstor
        wrote on last edited by
        #3

        Can you write me some example plz! thx

        nemanja

        C 1 Reply Last reply
        0
        • C conemajstor

          Can you write me some example plz! thx

          nemanja

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          When people ask trivial questions, that google could answer in seconds, I tend to provide some keywords, because it's really important for someone who wants to be a developer, to be able to do some research for themselves.  Given what I told you, intellisense should be all you need to solve the problem. The methods that search for the index of a substring, return -1 if they don't find it.

          Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

          1 Reply Last reply
          0
          • C conemajstor

            How to find a word in textbox? thx

            nemanja

            E Offline
            E Offline
            engsrini
            wrote on last edited by
            #5

            if you want to implement some search functionality, defintely there must be some buch of text that will occupy the controll. right.. then go for richtextbox instead of textbox. That is having inbuilt function for "find" This is my suggestion.. otherwise you hav to implement the logic to do so.

            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