internet-explorer

HTML/IE: stretch image to fit, preserve aspect ratio

In an HTML window, I am setting a custom body <img src="file://[filename]"> to display an image. Now I want to strectch the image to fit the available window, but preserve aspect ratio. <img src="file://[filename]" width="100%" height="100"> stretches but also distorts the image. Is there some HTML trickery to do that? IE only...

Script / Utility to consolidate browser tabs?

I often find I have 10 browser windows (some firefox, some ie) running, each with multiple tabs. I'd like to be able to: 1) Consolidate all the URL's into a list, suitable for emailing 2) Merge all the tabs into one instance of either FF or IE Anyone ever come across a utility like this, and if not, have any idea how a person might do ...

Why does DebugView not show debugging messages when Visual Studio does

I am developing a Browser Helper Object running inside Internet Explorer. I am writing debugging messages with ATLTRACE("..."); These appear fine when Visual Studio is attached to the iexplore.exe process, but this is slow for a quick test. DebugView captures nothing from my BHO. Why does DebugView not show BHO debug messages? Is it som...

Styling HTML SELECT in Internet Explorer

Any way to customize the border and background of an HTML SELECT in IE? I can style the border with simple CSS in Firefox, but apparantly not in IE. ...

Moving mouse cursor programmatically

To start out I found this code at http://swigartconsulting.blogs.com/tech_blender/2005/08/how_to_move_the.html: public class Win32 { [DllImport("User32.Dll")] public static extern long SetCursorPos(int x, int y); [DllImport("User32.Dll")] public static extern bool ClientToScreen(IntPtr hWnd, ref POINT point); [StructLayout(LayoutKind....

Why IExpando.AddMethod was not called?

Hi, I'm hosting my WinForms control in Internet Explorer. Additionally I've implemented IExpando interface to be able to emulate unexisted fields and methods in my C# code when javascript code try to access them. For example var myobj = new ActiveXObject('server.object'); myobj.Foo = "FooText"; myobj.Bar("BarText"); Note that my C# c...

Html scroll: how to avoid it to "cut" my inner elements

Hi, this question is for an autocomplete drop down list I have to do that will fire while you're writing in an html textbox. It basically consists of a div containing the suggestion elements, each of them being a div as well. I got to the point where it's begining to work properly but now I added a vertical scroll to the containing di...

How to start an executable from a web page running on localhost?

I have an application that hosts a webcontrol (IE) and runs on localhost using Casini. I use it to run CruiseControl.NET (See http://www.codeplex.com/ccnetbuildstation for the app). Within custom CruiseControl.NET reports I would like to start other applications like Visual Studio. Any idea how I can launch an executable from a web p...

Future of Internet Explorer

It's been rumored that IE8 will be Microsoft's final release of IE (When I asked this question, someone pointed me to an article on Slashdot -- Yes, I know, it's Slashdot, but it cited an article on InfoWorld -- in any case, there seems to be some legitimate concern regarding Microsoft's continued support for IE, at least in its present ...

How to determine if a textbox in a windows form has focus

Hello, Let's say I have internet explorer embedded in a windows form and I then navigate to a random page on the web. How can I determine when a textbox (or any other control that can accept text input for that matter) becomes the item in focus? Basically, every time the mouse is clicked I can check to see if the item in focus is a te...

Determining when IE activex control has been repainted.

I was using spy++ and noticed that the IE control I have embedded in a windows form was periodically calling or sending WM_PAINT when it repaints itself. I'm trying to figure out how in C# code I can perform a C# method every time this control sends WM_PAINT. I know just enough pinvoke at this point to be dangerous. Thanks in advance,...

How to workaround: IE6 does not support CSS "attribute" selectors

One of the projects which I am working uses CSS "attribute" selector [att] CSS Selectors which is not supported by ie6: Support for CSS selectors in IE6 (look for text "Attribute Selectors") Is there any workaround/hack which is of course valid html/css to overcome this problem? ...

Getting a handle to controls in Internet explorer web pages

I have an Internet Explorer browser embedded in a Windows forms application and do not have the ability to modify the source code of this form. However, I have gotten a handle to the IE window and can perform various SendInput functions. If I click on a control how can I tell if it was a TextBox, and then how do I send characters to th...

margin-top property in CSS

Why does margin-top value not work in IE? Works fine in FF and Safari. Here's the link Thanks ...

Strange Crash with FckEditor IE and Image Moving

Hi, We have used FCKEditor for a long time and been very happy with it. Just recently though a new problem has occurred. If we insert an image into html and save it, then fine. If we then move the image around inside the the text and re-save (i.e. Get the html from the control for saving to a db) then IE crashes (FF does not of course)...

MediaPlayer does not show controls - problem with FF and IE. How to solve it?

Hi, I got this piece of code: <object id="MMPlayer1" codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject height=238 width=240 align=absmiddle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95> <param name="FileName" value="http://www.abradio.cz/asx/beta32.asx"&...

Setting Accept-Language in COM-embedded IE

I have an IE instance embedded in my C application using COM. With IWebBrowser2.Navigate I can pass headers to be sent along with the request, except apparently "Accept-Language". It seems the language settings from IE itself always override the value I pass in for that header. Is there any way around this? ...

How do I programmatically remove a certificate in Trusted Root Certification Authorities?

I need to be able to remove a specific certificate from each PC in my organization. Yes, I could go seat-to-seat, but I have until Thursday to pull it off, and I don't have the manpower to go seat-to-seat. Is there a programmatic way of doing this using C#? ...

Fading issues in Internet Explorer 7 when using jQuery

Hi, I'm using jQuery on a site that I'm working on and everything works fine - except in Internet Explorer 7 (and previous versions, but the site doesn't support them). Take a look at http://dev.staffanestberg.com/fromsweden/ either in Safari or Firefox, then in IE7 and you'll see what I mean. I'm currently using the built-in effect Fad...

Automating Internet Explorer

Can anyone offer any suggestions for "something" that an end-user could use to put together macros that automate some CRM forms in Internet Explorer? I was originally going to suggest iMacro, but then found out (i) they only have Internet Explorer and (ii) to make things even worse, it's version 6 :-( it has to be fairly simple, so I c...