|
-
Dec 12th, 2003, 05:06 PM
#1
Thread Starter
Member
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.
-
Dec 13th, 2003, 05:34 AM
#2
Sleep mode
Is it something like this :
VB Code:
If TextBox1.Text = "box" Then
'replace it with the string in TextBox2
TextBox1.Text = TextBox2.Text
End If
-
Dec 13th, 2003, 02:50 PM
#3
Thread Starter
Member
search
will that search through the text in the main textbox and replace it with a word that I choose.
-
Dec 13th, 2003, 03:05 PM
#4
Sleep mode
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|