❔ draggable window

Hello i started making winform apps today and dont know how to make the app draggable. how do i make it dragable
6 Replies
sibber
sibber3y ago
how is it not draggarable
InternetTruffle
InternetTruffleOP3y ago
i have a form that doesnt have a titlebar and i want to make it dragable when i click anywhere on the form
sibber
sibber3y ago
oh i think youll have to hande the window message yourself
sibber
sibber3y ago
WM_NCHITTEST message (Winuser.h) - Win32 apps
Sent to a window in order to determine what part of the window corresponds to a particular screen coordinate.
Anchy
Anchy2y ago
correct, or you can use WPF which handles this for you nicely using the Window.DragMove method
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?