Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1290
Programmatically displaying tooltip onto another control
posted

I have 2 buttons. button1 and button3 on my form. This is my code within button 3

        private void button3_Click(object sender, EventArgs e)
        {
            UltraToolTipInfo toolTipInfo = ultraToolTipManager1.GetUltraToolTip(button1);
            toolTipInfo.ToolTipTitle = "HEY";
            toolTipInfo.ToolTipText = "my text";
            this.ultraToolTipManager1.ShowToolTip(button1,true);
        }

I want the tooltip to appear on button1, however, it keeps showing up on button 3.
  • 469350
    Offline posted

    Since you are calling an overload of ShowToolTip that does not specify a location, it probably just shows at the current location of the mouse. You probably just need to use a different overload and pass in the screen coords you want.