public HtmlPopup(IHTMLWindow4 wdw) { try { _popup = wdw?.createPopup() as IHTMLPopup; StylePopup(); } catch (UnauthorizedAccessException) { } catch (COMException) { } }
private static String getFrameValue(DispHTMLDocument FrameDoc) { try { IHTMLWindow2 window = (FrameDoc as IHTMLDocument2).parentWindow; if (window.name != null && window.name.Trim().Length > 0) { return(window.name); } IHTMLWindow4 frameWindow = (FrameDoc as IHTMLDocument2).parentWindow as IHTMLWindow4; IHTMLElement frame = frameWindow.frameElement as IHTMLElement; if (!String.IsNullOrEmpty(frame.id)) { return(frame.id); } } catch { } return(null); }
public static HtmlPopup CreatePopup(this IHTMLWindow4 wdw) { return(new HtmlPopup(wdw)); }