473,721 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

axWebBrowser control

Hi,

My question is very simple I am sure but I cant seem to find a solution
anywhere....

I have a windows form in C# and I have added an axWebBrowser control. When
the form loads I am trying to display a web page in the control.... but I
have tried Navigate and Navigate2 methods and whatever I try nothing is
displayed... The code that I am using in the forms load event is

object oURL = "http://www.microsoft.c om";
object oEmpty = "";
axWebBrowser1.N avigate2(ref oURL, ref oEmpty, ref oEmpty, ref oEmpty, ref
oEmpty);

which I got from Microsoft web site

Can anyone explain what I need to do to have the web page display?
Dec 6 '05 #1
2 1535
Additional Info:

The form I am using is an MdiChild form.... when I run the code on a
standard form it displays the web page correctly.... how do I get the
axWebBrowser control to work on an MDIchild form?

Many thanks in advance

"hplloyd" wrote:
Hi,

My question is very simple I am sure but I cant seem to find a solution
anywhere....

I have a windows form in C# and I have added an axWebBrowser control. When
the form loads I am trying to display a web page in the control.... but I
have tried Navigate and Navigate2 methods and whatever I try nothing is
displayed... The code that I am using in the forms load event is

object oURL = "http://www.microsoft.c om";
object oEmpty = "";
axWebBrowser1.N avigate2(ref oURL, ref oEmpty, ref oEmpty, ref oEmpty, ref
oEmpty);

which I got from Microsoft web site

Can anyone explain what I need to do to have the web page display?

Dec 6 '05 #2
Hi,
You are using the activex control.
You should use System.Windows. Forms.WebBroser ,
which is probably a wrapper to the com obj.
Anyway, as far as i remember, you only have to set the url
property on WebBrowser and the web page loads automatically.
Hope this helps.
Sharon.

"hplloyd" <hp*****@discus sions.microsoft .com> wrote in message
news:8D******** *************** ***********@mic rosoft.com...
Hi,

My question is very simple I am sure but I cant seem to find a solution
anywhere....

I have a windows form in C# and I have added an axWebBrowser control. When
the form loads I am trying to display a web page in the control.... but I
have tried Navigate and Navigate2 methods and whatever I try nothing is
displayed... The code that I am using in the forms load event is

object oURL = "http://www.microsoft.c om";
object oEmpty = "";
axWebBrowser1.N avigate2(ref oURL, ref oEmpty, ref oEmpty, ref oEmpty, ref
oEmpty);

which I got from Microsoft web site

Can anyone explain what I need to do to have the web page display?

Dec 11 '05 #3

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

Similar topics

0
1964
by: benchong | last post by:
hi does anybody know how to initiatize the AxWebBrowser control with a cookie? the problem is each time i create a new AxWebBrowser control and do a AxWebBrowser1.navigate to a page, i need to execute a login. what i wanted is to execute a login once, get the cookie returned, and when i navigate to it the next time in a new AxWebBrowser control i can avoid the login sequence if the new control has the same cookie.
0
1547
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 whose designer-generated InitializeComponent() method instantiates a web browser control and eventually calls EndInit() on it. It's that EndInit() call that takes several seconds to complete. What's odd is that my application makes extensive use...
4
4803
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 method 'Navigate' of AxWebBrowser control that has a parameter 'ref object postData' but didn't find any documentation about AxWebBrowser how to use it. i tried a string like "name1=value1&name2=value2" but it doesn't work. Any help?? Thanks
0
2915
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 don't want that it just spends over 10mb for nothing. So i remove the axwebbrowser with axwebbrowser1.dispose() which works fine. After show the application back from the tray icon i will implement the axwebbrowser again with the same i did it...
1
2318
by: Mantorok | last post by:
Hi Is there anyway to get a WebBrowser to work without placing it on a form. I want to be able to instantiate a browser, complete some of the fields and submit, but whenever I try to navigate I get: An unhandled exception of type 'InvalidActiveXStateException' occurred in axinterop.shdocvw.dll
0
1586
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 "WebView"/Tasks pane on the left side of the file view? I've looked around and know it can be done globally from the registry
3
10205
by: Clint MacDonald | last post by:
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
0
3558
by: Berry W | last post by:
Hi, I'm trying to capture hidden window's data that is in IE's AxSHDocVw.AxWebBrowser ActiveX control. If Control and window are visible, code below works but if Control and it's window is hidden e.g. emmedded in dll, code does not save data as an picture. How should I handle this kind of situation? How can I get data printed to file if AxWebBrowser is hidden and
6
3767
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 AxWebBrowser.Document: When I print browser.Document.GetType().ToString() at runtime, I get "mshtml.HTMLDocumentClass". But The VS2005 compiler does not recognize the member AxWebBrowser.Document as anything other than a System.Object -- e.g.,...
0
1124
by: tamarindm | last post by:
Hi, I have a csharp application, running multiple instances of AxWebBrowser at the same time. Each web browser requires the same cookie, set using InternetSetCookie. If one AxWebBrowser control is navigating, another control is not able to recognise the cookie. If I waited until the first control is complete navigating, then start navigating the second control, then it is able to recognise the cookie. Is this a known feature of the...
0
9373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6676
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5992
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4491
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4761
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3201
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2584
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.