Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim str As String = TextBox1.Text$.Replace(" ", vbNullString)
- MsgBox("The Word after " & str & " is: " & TextBox2.Text$.Substring(TextBox2.Text$.IndexOf(str) + Val(str.Length + 1)).Split(" ")(0), MsgBoxStyle.Information)
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement