Wednesday, August 11, 2010

How to find active windows and current browser

Microsoft HTML Object Library - Microsoft.mshtml.dll (MSHTML)
Microsoft Internet Controls - Interop.SHDocVw.dll (SHDocVw)
using SHDocVw;
using mshtml;
using System.IO;
WebBrowser m_browser = null;
ShellWindows shellWindows = new ShellWindows();
string filename;
foreach (SHDocVw.WebBrowser ie in shellWindows)
{
    filename = Path.GetFileNameWithoutExtension(ie.FullName).ToLower();
    if (filename.Equals("iexplore"))
    {
        m_browser = ie;
        break;
    }
}

No comments:

iPhone Launch Screen Sizes

iPhone Portrait iOS 8 Retina HT 5.5 = 1242 X 2208 Retna HD 4.7 = 750 X 1134 iPhone Landscape iOS 8 Retina HD 5.5  2208 X 1242 iPho...