set the size of the tooltip dialog box depending on the text
<p>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.</p>

<p>in firefox and IE7 tooltip text is showed in one line but in IE8 the tooltip text is wrapped . i.e text is displayed in 2 lines.</p>

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

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

        iUrl.ToolTip = "ghghghghghghghghghghghghghghghghghghghghghghghghghghghghghghghgh";
        valid = false;
    }
</code></pre>
