VB - If * Then exclude code from sub

flyest

Doctor
Mar 3, 2013
94
13
Let's say I have an application with three web browsers, a button and a code that looks like this:
Code:
    Private Sub Button_Click(sender As Object, e As EventArgs) Handles Button.Click
        WebBrowser1.Refresh()
        WebBrowser2.Refresh()
        WebBrowser3.Refresh()
    End Sub
Is it possible to exclude a line or certain text from the code if something (for example if WebBrowser1.DocumentText.Contains("some text"))?
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
Found a nice thread for you to check out if your problem hasn't been resolved. I can't answer this exact questions myself, my VB is a little rough.
 

Users who are viewing this thread

Top