What is the type of MouseEventArgs.X?
问题 Working with C# in Visual Studio 2008 (.NET 3.5). Looking into System.Windows.Forms.MouseEventArgs . I'm seeing strange behavior with long Panel when I intercept handle the MouseMove event. It appears that MouseEventArgs.X goes from 0 to 32767, and wraps around to -32768. When I watch the variable in Visual Studio, it claims that it's of type int . Apparently it's a 16-bit signed integer the way it's behaving. Is this true? Is this a hard limit? Thanks! 回答1: This probably comes from the fact