Results 1 to 3 of 3

Thread: Can't navigate from different form

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2013
    Posts
    200

    Can't navigate from different form

    Hello, I have 2 forms in my app and want to navigate the webbrowser1 on MainForm using SettingsForm. Here's my code:

    vb.net Code:
    1. If MainForm.WebBrowser1.Url.AbsoluteUri Is "about:blank" Then
    2.     MainForm.WebBrowser1.Navigate("http://www.domain.com")
    3. End If

    My code can't do this, what am I doing wrong?

    EDIT: When I test with MessageBox.Show(MainForm.WebBrowser1.Url.AbsoluteUri) it shows me about:blank
    Last edited by nikel; Oct 22nd, 2015 at 12:52 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width