Loop in mouse move event
Posted: Tue Aug 14, 2007 12:50 pm
Hi,
I have a problem with the last version of tee chart
On the mouse move, I executed the following function:
private void tChart1_MouseMove(object sender, MouseEventArgs e)
{
System.Console.Beep(500,500);
hScrollBar1.Size = new Size(this.Width, (int)(0.1 * this.Height));
hScrollBar1.Size = new Size(this.Width, (int)(0.15 * this.Height));
}
And it loops in the mouse move. It doesn't if I comment one of the 2 lines.
My scroll bar is one of the dotnet framework.
Thanks to help me.
Anne-Lise
I have a problem with the last version of tee chart
On the mouse move, I executed the following function:
private void tChart1_MouseMove(object sender, MouseEventArgs e)
{
System.Console.Beep(500,500);
hScrollBar1.Size = new Size(this.Width, (int)(0.1 * this.Height));
hScrollBar1.Size = new Size(this.Width, (int)(0.15 * this.Height));
}
And it loops in the mouse move. It doesn't if I comment one of the 2 lines.
My scroll bar is one of the dotnet framework.
Thanks to help me.
Anne-Lise