How do I make mousedrag inside Panel move form window?

后端 未结 5 943
陌清茗
陌清茗 2021-02-08 19:34

I have this System.Windows.Forms.Panel that I want to enable so that if the user click and drags the mouse drags the window around to.

Can I do this? Do i have to implem

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-08 20:32

    Bravo's code works perfectly fine but I couldn't get this working until i explicitly made MouseMove event enable in panel's->properties->event section of my panel i wanted to move.

提交回复
热议问题