How to get the window handle for the Internet Explorer process you created (LCIE IE 8)

One technique people use in accessibility applications is to kick off an application and then grab the Window handle of the process to hook it or do other processing.  With loosely coupled Internet Explorer (LCIE) this is a little more difficult that simply getting the handle of the iexplore.exe process you kick off.  The reason…

2

Using HttpWebRequest with Credential Manager

A little know fact is that the .NET framework will use the stored credentials in the Credential Manager when accessing a network resource if the credentials exist for that particular resource (host).  I intend to clear up how this functionality works for the HttpWebRequests (you could extend this to WebService calls as well). In Internet…

7

Understanding Connection Limits and New Proxy Connection Limits in WinInet and Internet Explorer

Because of RFC 2616 section 8.1.4 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html) we have traditionally limited the number of persistent connections to 2 per server.  This is because of the strong language in this RFC: ” A single-user client SHOULD NOT maintain more than 2 connections with any server or proxy.” Practically speaking with today’s modern web servers, there is…

2

InfoPath form and other xml Office documents do not open from Internet Explorer – Raw XML displays instead

I came across this problem.  The key to this was that the documents opened fine when clicking on them, so I knew the Office installation itself was fine.  Some rogue application on install or removal had apparently removed the appropriate Content Type registry key so Internet Explorer was unable to associate the XML file extension…

2

Understanding the New WinInet option: INTERNET_OPTION_SUPPRESS_SERVER_AUTH

With the release of Internet Explorer 8 comes a new option for WinInet programming: INTERNET_OPTION_SUPPRESS_SERVER_AUTH.  The MSDN documentation is very specific and describes how the option affects authorization, but I like to see things in action!  How about some sample code for INTERNET_OPTION_SUPPRESS_SERVER_AUTH? This option is documented here: http://msdn.microsoft.com/en-us/library/aa385328(VS.85).aspx (note that if you are not using the…

0

ASP.NET asp:menu does not display Child Menu items in IE 8

Strange.  I found in my personal website the Child menus were not showing when I hovered over the root menu item. There is nothing special about the menus.  They are standard asp:menu items created when I dragged the menu tool from the navigation tools in Visual Studio 2008. UPDATE: Fix http://support.microsoft.com/kb/962351 Has the hotfix to…

18

You have a .NET control Hosted in Internet Explorer 8 and it restarts a tab in Internet Explorer

Message: This Tab Has Been Recovered  Previous versions of IE are fine. If the control implements IObjectSafety or other interfaces improperly, this could cause this message.  The reasons for this include that you did not implement the IObjectSafety Interface properly.  You must use the PreserveSig attribute in this interface definition: [ComImport][Guid(“CB5BDC81-93C1-11CF-8F20-00805F2CD064”)][InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]interface IObjectSafety{   [PreserveSig]   int GetInterfaceSafetyOptions(ref Guid riid,…

0

How To: Modify injected (attributed) code in an ATL control that is crashing

(ATL Control Visual Studio 2003 Crashes long value) I found a problem in the injected code from Visual Studio 2003 for an ATL control that had a property that was a long (VT_I4) value.  You could reliably crash the control if you put it into an html page and had jscript in a loop, setting the…

0

Print from Internet Explorer without the Printer Selection Box

Quickie post… If you have a default printer selected on your system, then this HTML page with jscript should print without showing the printer selection dialog (I will embellish this post later if I have time):   <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>   <html xmlns=”http://www.w3.org/1999/xhtml”> <head>     <title>Untitled Page</title>     <script language=’VBScript’>…

4