473,765 Members | 2,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there alternative to AxWebBrowser?

Is there alternative to AxWebBrowser?
I spent one whole week trying to make AxWebBrowser refresh php page.
It never works.
I tried over 10-15 suggestions from Microsoft itself.
Refresh just doesn't work.

I tried to create AxWebBrowser programatically , but it throws
exceptions when I want to dispose it and no one was able to help me or
tell me why.

When I ask AxWebBrowser.re fresh, it should refresh. Instead and I spent
a week trying to get it to work...and I can't release my application
because of this crappy component.

I spent by now, at least 30 hours on this little stupid problem.

I need alternative to this component, something where refresh would
really work and reload the page from the scratch.

Thanks.

Martin

Nov 21 '05 #1
6 2108
Martin,

An answer on your question, depends on what is your goal.

When you ask if there is an alternative for a car than that is difficult to
answer, however when you say that you have to go 100 meters than we can give
you a lot of answers.

When you will show pages on a screen, you can try to do it yourself, however
because of the composition from all elements it will be more than 30 hours
(more months probably).

When you want to get individual docs or whatever (what are not pages) you
can use the Httprequest

I hope this helps something?

Cor
Nov 21 '05 #2
"MARTIN LANNY" <ma**********@g mail.com> schrieb:
Is there alternative to AxWebBrowser?


There is a similiar control for Mozilla available:

Homepage
<URL:http://www.iol.ie/~locka/mozilla/mozilla.htm>

Download
<URL:http://www.iol.ie/~locka/mozilla/control.htm>

I doubt that this control is more stable than the WebBrowser control.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
Instead of 'Refresh' why don't u try navigate method. This will surely reload
ur page.
Nov 21 '05 #4
This problem was all because no one could get axwebbrowser to refresh
properly.
I found this function:

Public Function GetPageHTML(ByV al URL As String, Optional ByVal
TimeoutSeconds As Integer = 10) As String
' Retrieves the HTML from the specified URL,
' using a default timeout of 10 seconds
Dim objRequest As Net.WebRequest
Dim objResponse As Net.WebResponse
Dim objStreamReceiv e As System.IO.Strea m
Dim objEncoding As System.Text.Enc oding
Dim objStreamRead As System.IO.Strea mReader

Try
' Setup our Web request
objRequest = Net.WebRequest. Create(URL)
objRequest.Time out = TimeoutSeconds * 1000
' Retrieve data from request
objResponse = objRequest.GetR esponse
objStreamReceiv e = objResponse.Get ResponseStream
objEncoding = System.Text.Enc oding.GetEncodi ng( _
"utf-8")
objStreamRead = New System.IO.Strea mReader( _
objStreamReceiv e, objEncoding)
' Set function return value
GetPageHTML = objStreamRead.R eadToEnd()
' Check if available, then close response
If Not objResponse Is Nothing Then
objResponse.Clo se()
End If
Catch
' Error occured grabbing data, simply return nothing
Return ""
End Try
End Function

To grab html code from the page and it is always a new and refreshed
page.
So this solved my troubles and because I do not have to use
axwebbrowser anymore, my application went down in size by 7 mb.
Amazing ...
Anyway, thanks for trying to help me.

Martin

Nov 21 '05 #5
Martin,

When you had answered my question in this thread, than I had given you this
sample.

It is a little bit shorter.

\\\
Module main
Public Sub main()
Dim myReg As Net.HttpWebRequ est = _
DirectCast(Net. WebRequest.Crea te("http://www.google.com" ), _
Net.HttpWebRequ est)
Dim myResp As Net.HttpWebResp onse = _
DirectCast(myRe g.GetResponse() , Net.HttpWebResp onse)
Dim myStream As IO.Stream = myResp.GetRespo nseStream()
Dim myreader As New IO.StreamReader (myStream)
Dim mystring As String = myreader.ReadTo End()
myResp.Close()
End Sub
End Module
///

However maybe you can still use it?

Cor
Nov 21 '05 #6
Above code I mentioned is better as it has a time out property, which
is good if you are going through intermediate login screen as I was.
Your code is good too, but it wouldn't work for my purposes.
Martin

Nov 21 '05 #7

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

Similar topics

0
1550
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...
0
1587
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
5
1813
by: Thom Little | last post by:
I have a windows application that has an update form that uses AxWebBrowser to connect to a distribution site. This site uses a Response.Redirect to download of either a .msi file or a .zip file. I have tried this under four systems Windows XP, Windows 2000, Server 2003 with mixed results. Sometimes the .msi file is blocked. Sometime the .zip file is blocked. Sometimes both are blocked. Sometimes neither is blocked. If the...
7
6791
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 working on each tab (and those methods are not available in 2005). I found some code on MSDN forums, but the extention didn't really cover RegisterAsBrowser. Someone told me how to do it, but it's in c and basically over my head. Even though he...
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
965
by: Alfa & Omega | last post by:
I made app for Windows XP, bu t now my users want same thing for PDAs? Problem is that I'm using AxWebBrowser(shdocvw.dll) and Microsoft Scriptlet compoennt (mshtml.dll)... and I can't use those in my app? Is there any alternative? Al i have to do is to have web browser in my app and have capability of getting html content of current page! WBR Igor
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
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,...
0
10164
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
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
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
9835
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
7379
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
5277
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...
3
2806
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.