473,772 Members | 2,349 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 1539
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
1971
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
1551
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
4808
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
2917
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
2320
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
1588
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
10207
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
3560
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
3768
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
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
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...
1
7461
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
5355
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
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4009
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
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2851
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.