I have an application that uses Windows.Forms.Panel to display a list of pictures. When the height of the panel exceeds 32767 pixels the rest of the content is
LPARAM - A Data type of Windows used to pass message parameters to Windows Procedure. It is a 32 bit pointer which passes message as two parts i.e in High order(First 16 bits of 32 bits) and Low order(Second 16 bits of 32 bits).
Where
High order is used to pass the height of the control and
Low order is used to pass the width of the control
So if the height or width of the control exceeds 32762size, it shows error because
32767 is the highest number that can be represented in a signed 16bit integer.