473,221 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,221 software developers and data experts.

AxWebBrowser

I have used the AxWebBrowser in a Visual Basic Project...

I found that both Framework 1.0 and 1.1 had to be installed for it to work
properly.

I now have found that in Studio 2003, that the probablem has come back even
if both are installed.

When I open a windows form that has the Browser on it and try to Navigate to
a page using the OnEnter or OnLoad events, the page just sits there and does
nothing. If I make a button that navigates to a fil/page, then it works
fine....

Help

Clint MacDonald
Nov 19 '05 #1
3 10178
Hi Clint

I have been using the WebBrowser control from VB.NET for some little while
now, first with VS2002, and now with VS2003 (both now installed).

I have just tried navigating to the MS web site in the Form_Load event
without problem. Do you have any other stuff going on, e.g. processing any
events, like the DocumentComplete event?

Charles
"Clint MacDonald" <cl***@igsol.com> wrote in message
news:O9*************@TK2MSFTNGP11.phx.gbl...
I have used the AxWebBrowser in a Visual Basic Project...

I found that both Framework 1.0 and 1.1 had to be installed for it to work
properly.

I now have found that in Studio 2003, that the probablem has come back even if both are installed.

When I open a windows form that has the Browser on it and try to Navigate to a page using the OnEnter or OnLoad events, the page just sits there and does nothing. If I make a button that navigates to a fil/page, then it works
fine....

Help

Clint MacDonald

Nov 19 '05 #2
Hi Charles:

I have been playing around a bit and strangely enough....it seems to work in
the OnActivate event....

however, here are a few more things I have noticed....in my MDI environment,
1) if I have another child opn that has a datagrid on it, the child is
maximized and the datagrid is resized using anchors as a result, then when
the new child is opened with the AxWebBrowser on it, it causes all sorts of
problems....
2) if the previous child window is not maximized or the datagrid has fixed
width, the child window with the AxWebBrowser on it loads fine with the
OnActivated event navigating....
3) If the other current child window does not have a datagrid on it, the
AxWebBrowser loads fine
4) If a previous child window with a datagrid, maximized is open, and then
another window without a datagrid on it is opened and maximized, then
AxWebBrowser window opens fine...thus meaning that it does not work fine
when the previous current child window has a datagrid on it, is maximized,
and the datagrid is resized using the anchors....

I do not see the link here, but there is a definate pattern that is now
obvious and predictable.

any ideas...

Clint
"Charles Law" <la****@btinternet.com> wrote in message
news:u3**************@TK2MSFTNGP10.phx.gbl...
Hi Clint

I have been using the WebBrowser control from VB.NET for some little while
now, first with VS2002, and now with VS2003 (both now installed).

I have just tried navigating to the MS web site in the Form_Load event
without problem. Do you have any other stuff going on, e.g. processing any
events, like the DocumentComplete event?

Charles
"Clint MacDonald" <cl***@igsol.com> wrote in message
news:O9*************@TK2MSFTNGP11.phx.gbl...
I have used the AxWebBrowser in a Visual Basic Project...

I found that both Framework 1.0 and 1.1 had to be installed for it to work properly.

I now have found that in Studio 2003, that the probablem has come back even
if both are installed.

When I open a windows form that has the Browser on it and try to

Navigate to
a page using the OnEnter or OnLoad events, the page just sits there and

does
nothing. If I make a button that navigates to a fil/page, then it works
fine....

Help

Clint MacDonald


Nov 19 '05 #3
Looking even further into it,

this problem occurs whether I try and navigate or not...so the navigate to
blank does not even get executed...
I tried doing a test messagebox in the OnLoad even, and it never appears...

the window does not show entirely,
I get a second set of min/max/norm buttons in top right,
The window creates ghosts if another window is dragged over it...

WEIRD

So, What I have done as a work around, is any time a window is opened that
has an AxWebBrowser control on it, I automatically minimize all other child
windows using a for each loop, this solves the problem, but slows window
loading time somewhat.

Thanks for the insight

Clint

"Charles Law" <la****@btinternet.com> wrote in message
news:O3**************@TK2MSFTNGP10.phx.gbl...
Clint

I am not trying to use a datagrid, so that may be why I have not seen the
same problems as you have. That is not to say that I haven't had problems
...

I have been watching several newsgroups, and can see that lots of people
have issues with the WebBrowser control, and not just in .NET.

One thing I have found is that it is imperative that the control initialises fully before attempting to manipulate the DOM. Therefore, I always navigate to about:blank in the Form_Load event, and then in the DocumentComplete
event cache a reference to AxWebBrowser1.document, cast as HTMLDocument. I
then use this when I need access to the DOM.

Also, I stay in the DocumentComplete event until AxWebBrowser1.ReadyState is Complete. You would think that it must be on entry, but I have found that it is not always.

This may be overkill, but I definitely get fewer funnies now that I do all
this.

HTH

Charles
"Clint MacDonald" <cl***@igsol.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi Charles:

I have been playing around a bit and strangely enough....it seems to work
in
the OnActivate event....

however, here are a few more things I have noticed....in my MDI

environment,
1) if I have another child opn that has a datagrid on it, the child is
maximized and the datagrid is resized using anchors as a result, then when the new child is opened with the AxWebBrowser on it, it causes all sorts

of
problems....
2) if the previous child window is not maximized or the datagrid has fixed width, the child window with the AxWebBrowser on it loads fine with the
OnActivated event navigating....
3) If the other current child window does not have a datagrid on it, the
AxWebBrowser loads fine
4) If a previous child window with a datagrid, maximized is open, and then another window without a datagrid on it is opened and maximized, then
AxWebBrowser window opens fine...thus meaning that it does not work fine
when the previous current child window has a datagrid on it, is maximized, and the datagrid is resized using the anchors....

I do not see the link here, but there is a definate pattern that is now
obvious and predictable.

any ideas...

Clint
"Charles Law" <la****@btinternet.com> wrote in message
news:u3**************@TK2MSFTNGP10.phx.gbl...
Hi Clint

I have been using the WebBrowser control from VB.NET for some little while now, first with VS2002, and now with VS2003 (both now installed).

I have just tried navigating to the MS web site in the Form_Load event
without problem. Do you have any other stuff going on, e.g. processing any events, like the DocumentComplete event?

Charles
"Clint MacDonald" <cl***@igsol.com> wrote in message
news:O9*************@TK2MSFTNGP11.phx.gbl...
> I have used the AxWebBrowser in a Visual Basic Project...
>
> I found that both Framework 1.0 and 1.1 had to be installed for it to work
> properly.
>
> I now have found that in Studio 2003, that the probablem has come
back even
> if both are installed.
>
> When I open a windows form that has the Browser on it and try to

Navigate
to
> a page using the OnEnter or OnLoad events, the page just sits there

and does
> nothing. If I make a button that navigates to a fil/page, then it works > fine....
>
> Help
>
> Clint MacDonald
>
>



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Clint MacDonald | last post by:
I have used the AxWebBrowser in a Visual Basic Project...with some success but some buggy things... I found that both Framework 1.0 and 1.1 had to be installed for it to work properly. ...
0
by: Lecture Snoddddgrass | last post by:
Hi, I noticed that my WinForms app was taking a while to start up. I stepped through the code to find out which line was causing the delay. The delay is occurring within one of my UserControls...
4
by: TF | last post by:
hi, i am using AxWebBrowser control in my C# dot.net windows application. i want to display a web page in the browser that needs some data sent to it through HTML Form 'POST' method. I saw a...
4
by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem...
0
by: Matthias Kwiedor | last post by:
I have a aplication which hosts an axWebbrowser. This activex component needs about 10 to 15 mb of memory. Because i have a option to move the aplication to tray icon and do some timer work i...
0
by: beau | last post by:
Hi, I'm using the AxWebBrowser in a C# WinForms application. I've got the basics working, but need some help controlling the view options for browsing files. How can I disable the...
3
by: MeNotHome | last post by:
I have been trying to find all the properties and methods documentation on the axwebbrowser control. For example a list of follwing and their results axwebbrowser.document.body.outerhtml...
7
by: Doe | last post by:
Okay, I've given up on using the "new" WebBrowser in 2005 to do what I want to do -- tabbed browsing. It seems I really need RegisterAsBrowser and Application to get each instance of a browser...
6
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.