private void removeToolTip() { if (toolTip == null) { return; } this.Controls.Remove(toolTip); toolTip.Dispose(); toolTip = null; }
private void addToolTip(Point location, string hint) { if (toolTip != null) { return; } toolTip = new mhLabel(); toolTip.Size = new Size(150, 40); toolTip.Location = new Point(location.X - toolTip.Width / 2, location.Y - toolTip.Height / 2); toolTip.BorderStyle = BorderStyle.Fixed3D; toolTip.Html = hint; toolTip.Css = CSS; this.Controls.Add(toolTip); }
private void removeToolTip() { if (toolTip == null) return; this.Controls.Remove(toolTip); toolTip.Dispose(); toolTip = null; }
private void addToolTip(Point location, string hint) { if (toolTip != null) return; toolTip = new mhLabel(); toolTip.Size = new Size(150, 40); toolTip.Location = new Point(location.X - toolTip.Width / 2, location.Y - toolTip.Height / 2); toolTip.BorderStyle = BorderStyle.Fixed3D; toolTip.Html = hint; toolTip.Css = CSS; this.Controls.Add(toolTip); }