how to get smartphone like scrolling for a winforms touchscreen app ( scrolling panel )

前端 未结 6 973
暖寄归人
暖寄归人 2020-12-30 04:15

After scouring the articles online I have come up with this design for a winforms based touchscreen app that needs smartphone like scrolling. The app itself will run on a ta

6条回答
  •  失恋的感觉
    2020-12-30 04:57

    I used the code the OP posted but found it doesnt work if there are things with in the panel like labels. To make this work more smoothly I changed .

    e.Location 
    

    to

    PointToClient(Cursor.Position) 
    

    and then had all objects inside the panel also call the mousedown and mousemove events. This way not matter where you click it should move.

提交回复
热议问题