Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

how to get specific string from unpredicted input messages?

$
0
0
Hi sir, I'm newbie here. I just want your help.
Let's say, I have these code in my vb:

Code:

dim msg1, msg2 as string
msg1=textbox1.text
'notes that textbox1 will be inputed with random string but will contain myname: blablabla
'example
textbox1.text="newejjdhajdahksjmyname: blablabla asljdsjdksk"
'or may be inputed like this:
textbox1.text="asfdssadadamyname: blablabla asadsdasghfhgfhfghfgfhgfgfga"
msg2 = msg1.find(......i don't know how to coding it)
textbox2.text="your name: " + msg2

sorry if I type incorrect english. thanks.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>