set the size of the tooltip dialog box depending on the text

Posted by xrx215 on Stack Overflow See other posts from Stack Overflow or by xrx215
Published on 2010-04-30T17:52:47Z Indexed on 2010/04/30 17:57 UTC
Read the original article Hit count: 157

Filed under:

How do i set the size of the tooltip dialog box. the tooltip text must be displayed in one line rather than wrapping the text to other line.

in firefox tooltip text is showed in one line but in IE the tooltip text is wrapped . i.e text is displayed in 2 lines.

asp:Image runat="server" ID="iUrl" Visible="false" ImageUrl="~/Widgets/FMP_Printers/images/status icons/icon_Fault_Enabled.gif" />

  if (txtUrl.Text.ToUpper().IndexOf("HTTP://") < 0 && txtUrl.Text.ToUpper().IndexOf("HTTPS://") < 0)
    {
        iUrl.Visible = true;

        iUrl.ToolTip = "ghghghghghghghghghghghghghghghghghghghghghghghghghghghghghghghgh";
        valid = false;
    }

© Stack Overflow or respective owner

Related posts about ASP.NET