By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,989 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,989 IT Pros & Developers. It's quick & easy.

AXBrowser Issu

P: n/a
I am using an AxWebBroswer in a C# project. (.Net 2002

If I use it to touch external sites, then thing work as expected. I can open multiple windows with AxWebBrowsers in them and everything still works

If, on the other hand, I open a local file (e.g., d:\index.html) then nothing is displayed and the hourglass is shown when the cursor in on the viewing area. Any forms with a web broswer after this,show the same behavior (blank viewing area with hourglass) even if the window is trying to hit an external web page. If I change the URL in any of windows to point to a local directory rather than a local html file, then I see a directory shown. If I then enter a url (local file or remote web site) then pages work fine. for that window. I need to do this on each form to get the forms to work.

To make clear, if I use d:\index.html as the first URL touched by an AxWebBrowser then the view area is blank and an hourglass shown. If I then try http://www.microsoft.com as the URL for that AxWebBrowser, I get the same behavior. If I then try d:\ as the URL for that AxWebBrowser, I get a directory listing. If I then try http://www.microsoft.com as the URL for that AxWebBrowser, I get the microsoft site shown. If I then try d:\index.html as the URL for that AxWebBrowser, I get the index.html web page shown, as I expected for the first tim

1. Has anyone seen this behavior
2. Does anyone have an idea on why this is
3. Any ideas on workarounds

Thanks
Ralph
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I can't give you any hard answers (hopefully someone will), but here's what
I do to work around the issues I have.

After creating the axBrowser, I load up the page "about:blank", and wait for
it to complete. Then, I show pages / wait for user input, whatever to do
the "normal" behavior. This fixes issues with setting the HTML, loading
local pages, etc for me.

Hope this helps you, but I also hope you get actual answers to 1. and 2.
that you posted below.

-Philip
"Ralph Pass" <rp****@rppass.com> wrote in message
news:7F**********************************@microsof t.com...
I am using an AxWebBroswer in a C# project. (.Net 2002)

If I use it to touch external sites, then thing work as expected. I can open multiple windows with AxWebBrowsers in them and everything still works.
If, on the other hand, I open a local file (e.g., d:\index.html) then nothing is displayed and the hourglass is shown when the cursor in on the
viewing area. Any forms with a web broswer after this,show the same
behavior (blank viewing area with hourglass) even if the window is trying to
hit an external web page. If I change the URL in any of windows to point to
a local directory rather than a local html file, then I see a directory
shown. If I then enter a url (local file or remote web site) then pages
work fine. for that window. I need to do this on each form to get the forms
to work.
To make clear, if I use d:\index.html as the first URL touched by an AxWebBrowser then the view area is blank and an hourglass shown. If I then
try http://www.microsoft.com as the URL for that AxWebBrowser, I get the
same behavior. If I then try d:\ as the URL for that AxWebBrowser, I get a
directory listing. If I then try http://www.microsoft.com as the URL for
that AxWebBrowser, I get the microsoft site shown. If I then try
d:\index.html as the URL for that AxWebBrowser, I get the index.html web
page shown, as I expected for the first time
1. Has anyone seen this behavior?
2. Does anyone have an idea on why this is?
3. Any ideas on workarounds?
Thanks,
Ralph

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.