Replace text

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts Page 1 of 1
Contributors
User avatar
CodenBoy
Top Poster
Top Poster
Posts: 103
Joined: Sun Jul 15, 2012 4:06 pm

Replace text
CodenBoy
Hello, I just need little help with a code to replace a letter to another one in Textbox.

I want to replace all the letters to the new one like this "Hey, bye" after converting "e" to "a" I want it "Hay, Bya"
lol,

Thanks
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: Replace text
Dummy1912
maybe with
Code: Select all
if textbox1.text.contains("e") then
textboxt1.Text = textbox1.Text.Replace("e", "a")
end if
something like this i guess :)


this can be even a richtextbox of a multi textbox
its convert every e to a a
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
CodenBoy
Top Poster
Top Poster
Posts: 103
Joined: Sun Jul 15, 2012 4:06 pm

Re: Replace text
CodenBoy
#Dummy1912

Thanks bro, <3 you remember me your bro, CleverBoy :p

I will test it, i tried this without the If statement maybe this gonna work, i will check this later, thanks!

:)
3 posts Page 1 of 1
Return to “Coding Help & Support”