• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Search text in textbox and delete it

Hi, to ask my question, I'm going to give an example. Ok, I have a text box and a command button. In this text box, I write "This is a text box". When I click the command button, I want that in the place of all the letter "X"s from the text box, a "Z" appears (so the text becomes "This is a tezt boz"). Just an example. Ok, is there any way of doing this? Thanks a lot!
0
HyMaX
Asked:
HyMaX
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Private Sub Command1_Click()
    Text1.Text = Replace(Text1.Text, "x", "z")
End Sub
0
 
HyMaXAuthor Commented:
That was right and simple! Thanks a lot again!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now