How to show the SuperToolTip at any location for a particular time interval?
(Views :1386)

The SuperToolTip can be showed at any specified location and for particular amount of time by using the Show() method of the SuperToolTip.

The Show() method takes 3 arguments. They are

  • ToolTipInfo Object.
  • Point object.
  • Duration(in Milli Seconds).
  • The last parameter (Duration) is optional.

    Here is the code snippet.

    C#
    ToolTipInfo myToolTipInfo = new ToolTipInfo();
    myToolTipInfo.BackColor = SystemColors.Control;
    myToolTipInfo.Body.Text = "Create a ToolTipInfo.\r\n And Show it.";
    myToolTipInfo.Header.Text = "ToolTip Header";
    superToolTip1.Show(toolTipInfothroughCode, new Point(120, 210));

    VB
    Private myToolTipInfo As ToolTipInfo = New ToolTipInfo()
    myToolTipInfo.BackColor = SystemColors.Control
    myToolTipInfo.Body.Text = "Create a ToolTipInfo." & Constants.vbCrLf & " And Show it."
    myToolTipInfo.Header.Text = "ToolTip Header"
    superToolTip1.Show(toolTipInfothroughCode, New Point(120, 210))

    To show the SuperToolTip for an infinitive amount of time, pass -1 as the value to the last parameter.

    C#
    superToolTip1.Show(toolTipInfothroughCode, new Point(120, 210),-1);

    VB
    superToolTip1.Show(toolTipInfothroughCode, New Point(120, 210),-1)

    ::adCenter::