protected virtual void OnItemMouseMove(ItemMouseEventArgs e) { if (this.ItemMouseMove != null) { this.ItemMouseMove(this, e); } }
protected virtual void OnItemMouseDown(ItemMouseEventArgs e) { if (this.ItemMouseDown != null) { this.ItemMouseDown(this, e); } }
protected virtual void OnItemMouseClick(ItemMouseEventArgs e) { if (this.ItemMouseClick != null) { this.ItemMouseClick(this, e); } }
private void frmItem_ItemMouseMove(object sender, ItemMouseEventArgs e) { if (e.Item == null) { tooltip.Visible = false; return; } if (e.Item != tooltip.TargetItem) { tooltip.TargetItem = e.Item; tooltip.Refresh(); } Point pos = frmItem.PointToScreen(e.Location); pos.Offset(5, 5); tooltip.Location = pos; tooltip.Visible = true; tooltip.BringToFront(); }