webbrowser

Flash in a browser to full screen

How can i make my flash applications in a browser in full screen mode? I know that the stage can be put in that mode, but when i run the application in any browser this doesn't work. So, this can be done, but how? ...

C# WebBrowser Control System.AccessViolationException

I have a program that uses the built in webbrowser control. At some point during the usage of this, I'm not sure at what point, but it appears to be random, I get the following error: System.AccessViolationException FullText = System.AccessViolationException: Attempted to read or write protected memory. This is often an indication tha...

Is it possible to use ServicePointManager with Webbrowser control?

I want to disable "Alert window" that I get from login page of one HTTPS site with "untrusted certificate". ServicePointManager is used for WebRequest/WebResponse: > public static bool > ValidateServerCertificate(object > sender, X509Certificate certificate, > X509Chain chain, SslPolicyErrors > sslPolicyErrors) { > return true; } ...

How do you change Visual Studio's default web browser?

This is a for a Silverlight project that isn't anchored to an .aspx file, so right clicking, etc. is a bit out of the question. Any ideas? Edit: Add an .html file, then click it. Really dumb. Last time I ask a question at three in the morning. ...

Which graphic file formats are supported by browsers?

JPEG, GIF and PNG can be displayed with the img tag and will work in all browsers, the object element can be use for displaying images specifying its MIME type, but what other graphic formats are supported by img or object tag in most broswers without installing plugins? (TIF, SVG, PCX, PICT, etc..) ...

How can I open a link in the default web browser from an HTA?

I'm working on an application that is implemented as an HTA. I have a series of links that I would like to have open in the system's default web browser. Using <a href="url" target="_blank"> opens the link in IE regardless of the default browser. Is there a way to use the default browser? Using JavaScript is an option. ...

Have you noticed stray hits to your web pages that have no parameters?

We have a web application that passes parameters in the url along the lines of this: www.example.com/ViewCustomer?customer=3945 Reasonably often, we will see attempts to access just: www.example.com/ViewCustomer Or system logs this as invalid and sends back a "An error has occurred, contact support with trace number XXX" type page....

Allow only Copy/Paste Context Menu in System.Windows.Forms.WebBrowser Control

The WebBrowser control has a property called "IsWebBrowserContextMenuEnabled" that disables all ability to right-click on a web page and see a context menu. This is very close to what I want (I don't want anyone to be able to right-click and print, hit back, hit properties, view source, etc). The only problem is this also disables the ...

How do I find out the browser's proxy settings?

I am writing a command-line tool for Windows that uses libcurl to download files from the internet. Obviously, the downloading doesn't work when the user is behind a proxy server, because the proxy needs to be configured. I want to keep my tool as simple as possible however, and not have to burden the user with having to configure the p...

VB.NET - Click Submit Button on Webbrowser page.

I have a html page open on my webbrowser object, I can enter username and password okay, but I'm stuck and don't know how to submit the info. Here is the html code for the username/password submit: <div id="signin"> <h2 class="ir"> <em></em>Sign in</h2> <form action="/login/" method="post"> <input id="login-url" nam...

When to use custom html tags?

What is the use case for using your own html tags? (In standard off the shelf browsers) A colleague and myself were discussing it lately. I could not think of a use case. We discussed it could be used for styling with css but then decided to use the span tag with a class instead. Thanks Paul ...

How do I uniquely identify computers visiting my web site?

I need to figure out a way uniquely identify each computer which visits the web site I am creating. Does anybody have any advice on how to achieve this? Because i want the solution to work on all machines and all browsers (within reason) I am trying to create a solution using javascript. I appreciate the help. Thanks. ...

Curious pop-up behavior when using WebBrowser class

My C# application includes an embedded web browser, which is made possible by the System.Windows.Forms.WebBrowser class. Users are able to navigate to websites using the app, however, when they encounter a page that includes a pop-up window, the pop-up window is opened by Internet Explorer. Does anyone know how to suppress that behav...

Scroll to a postion in a Web Browser using Wpf

I cannot seem to programmatcally scroll in WPF in a normal Windows Form I would use the code below but that property does not exist in WPF. HtmlDocument doc = this.webBrowser1.Document; doc.Body.ScrollTop = 800; return; Is there an alternative to doing this? ...

Highlighting Text in a .net Webbrowser Control

I'd like to highlight certain words in the document displayed in an embedded webbrowser control. I can envision a solution where the innerhtml property of the document is modified to add a colorizing < span > tag around the desired text, but I can't help feeling that there must be a simpler way? ...

What's the best way to detect that Adobe Acrobat Reader is installed from a browser?

What's the best way to detect that Adobe Acrobat Reader is installed from a web browser? I'm assuming it would have to be done on the client-side (I don't think Adobe adds any user-agent strings). Preferably in JavaScript and in Internet Explorer, although it would be nice if it could also be done in FireFox, Safari, etc... ...

How to control toolbar location in IE addon (BHO)

I'm trying to develop an Internet Explorer 7 addon using "Browser Helper Objects" (BHO). The goal is to have a standard IE toolbar with some buttons and one custom control. I would like to develop it in .NET I started from the baseline sample here. This works fine but... How to control where in the browser the toolbar will show? Curre...

databind the Source property of the WebBrowser in WPF

Does anyone know how to databind the .Source property of the WebBrowser in WPF ( 3.5SP1 )? I have a listview that I want to have a small WebBrowser on the left, and content on the right, and to databind the source of each WebBrowser with the URI in each object bound to the list item. This is what I have as a proof of concept so far, but...

How to determine direction of navigation from IE WebBrowser (IHtmlWindow2 or Javascript)

I'm uisng the WPF Web Browser control and when it fires the Navigating event, the event args always contain NavigationMode.New. It should be set to NavigationMode.Back if the user chooses to 'Go Back' from the web control. So its off to the COM ActiveX control underneath to determine the direction of navigation. I've been looking at I...

Creating and deploying an ActiveX control in .NET

Since there is apparently no Flash control that can accept bitmap pastes, I want to think about writing one myself. I'd rather not use Flash though, so I though about using .NET. Now I believe the correct terminology for a native code control that can be downloaded and run in the browser is "ActiveX control". So my question is, can I cr...