tags:

views:

388

answers:

0

Hi, I am creating a ActiveX control in C# 2.0. I want to show tool Tip over my User Control. So i define a property and also add a Tool Tip control on my user control.

public string ToolTipText
        {
            get { return this.myToolTipText; }
            set 
            { 
                this.myToolTipText = value;
                this.toolTip1.SetToolTip(this, this.myToolTipText);
                this.Invalidate();
            }
        }

Everything is fine here. When i set ToolTipText from another application which using this control, it shows the tool tip on mouse over.

But suppose if i click once on my control then tool tip not visible on mouse over. Are i have to define mouse Over event on my user control. Thanks in advance