コード例 #1
0
        private void AspectListBox1_MouseMove(object sender, MouseEventArgs e)
        {
            string toolTip = "";

            int index = aspectListBox1.IndexFromPoint(e.Location);

            if (index >= 0 && index < aspectListBox1.Items.Count)
            {
                toolTip = Aspect.GetAspect(aspectListBox1.Items[index].ToString()).ToString();
            }

            if (toolTipAspectListBox.GetToolTip(aspectListBox1) != toolTip)
            {
                toolTipAspectListBox.SetToolTip(aspectListBox1, toolTip);
            }
        }