opening an axwebbrowser control immediately

  • Thread starter Thread starter Bernie Yaeger
  • Start date Start date
B

Bernie Yaeger

I have an axwebbrowser control in a windows app and I want it to start at
the user's IE start page, and to start when the form opens, but I can't get
it to start in the form's load event. I even tried ending the load event
with
gobutton.performclick() but it doesn't work; the click event is not entered.

Any ideas how I can do this?

Thanks for any help.

Bernie Yaeger
 
Bernie,

These all work but I don't know the special command to
the default start page to come up. :o(

Bob

Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
' ***************************
' Display the HTML
' ***************************

'AxWebBrowser1.Navigate(CurDir()
+ "\myLocalHTMLFile.htm")
'TextBox1.Text() = "http://www.foxnews.com/"
'AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser1.Navigate("http://www.foxnews.com/")

End Sub
 
Bernie Yaeger said:
I have an axwebbrowser control in a windows app and I want it to start at
the user's IE start page, and to start when the form opens, but I can't get
it to start in the form's load event. I even tried ending the load event
with
gobutton.performclick() but it doesn't work; the click event is not
entered.

'PerformClick' will only work when the button is visible and enabled. Add
you navigation code to a separate procedure and call it from within the
button's 'Click' event handler and the form's 'Load' event handler.
 
Hi Cor,

Just took a look at navigate2; looks promising. I will play around with
it - I am after some way of referring, yes, not to a specific url, but
rather to the home page as established on any given pc.

Tx,

Bernie
 
Hi Bob,

Tx for the help - you and others have me going in the right direction now.

Bernie
 
Cor,

That link must be for paying customers. :o(

When I went to that link I get "You are not authorized to view this
page"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top