private void ShowInternal(bool fShow)
 {
     if ((this.htmlElemFrame != null) && (this.fVisible != fShow))
     {
         try
         {
             System.Design.NativeMethods.IHTMLDOMNode htmlElemFrame = (System.Design.NativeMethods.IHTMLDOMNode) this.htmlElemFrame;
             System.Design.NativeMethods.IHTMLStyle   style         = ((System.Design.NativeMethods.IHTMLElement)htmlElemFrame).GetStyle();
             if (fShow)
             {
                 style.SetDisplay(string.Empty);
             }
             else
             {
                 if (this.templateElements != null)
                 {
                     for (int i = 0; i < this.templateElements.Length; i++)
                     {
                         if (this.templateElements[i] != null)
                         {
                             ((System.Design.NativeMethods.IHTMLElement) this.templateElements[i]).SetInnerHTML(string.Empty);
                         }
                     }
                 }
                 style.SetDisplay("none");
             }
         }
         catch (Exception)
         {
         }
         this.fVisible = fShow;
     }
 }
 public void Resize(int width, int height)
 {
     if (this.htmlElemContent != null)
     {
         System.Design.NativeMethods.IHTMLStyle style = this.htmlElemContent.GetStyle();
         if (style != null)
         {
             style.SetPixelWidth(width);
             style.SetPixelHeight(height);
         }
     }
 }