Results 1 to 4 of 4

Thread: Final

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2003
    Posts
    33

    Final

    Hello, I am new to vb.net. This is my second small final exam project for class. I have to have a text box with some text in it. Then I have put a word in a field such as box and then in anothe field I have to enter another word such as rocks. What I then have to do is hit a button that will search the text in the textbox for the word box and replace it with the word rocks for example. Any one have any ideas. I am pretty inexperienced at programming.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Is it something like this :

    VB Code:
    1. If TextBox1.Text = "box" Then
    2.             'replace it with the string in TextBox2
    3.             TextBox1.Text = TextBox2.Text
    4. End If

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2003
    Posts
    33

    search

    will that search through the text in the main textbox and replace it with a word that I choose.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: search

    Originally posted by doro40282
    will that search through the text in the main textbox and replace it with a word that I choose.
    No . It won't search the text field . If you are after searching the textbox , then search this forum for previous posts .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width