Back to Browse

Move Borderless Form Using Mouse Down Event

716 views
Premiered Mar 9, 2024
4:06

Most Access forms can be moved by dragging whilst holding down the mouse on the form title bar. This isn't possible for a borderless form. However, a borderless form can be moved using one line of code in a mouse down event. Related article with all code and example app: https://isladogs.co.uk/move-borderless-form Times: 0:00 Intro 0:22 Most Access forms are moved by dragging whilst holding down the mouse on the form title bar. Not possible for borderless forms as these have no title bar 0:48 Can be done using one line of code in a mouse down event: DragFormWindow Me based on two APIs 1:10 DEMO -starting with standard form with title bar to show dragging using title bar 1:20 Change to borderless by setting Border Style = None. Code used to allow dragging on any empty space in form header or detail sections 1:50 Module code in modMoveForm: 2 APIs SendMessage & ReleaseCapture which are used in function DragFormWindow 3:05 Form code: DragFormWindow Me in one or more mousedown events 3:44 Thanks for watching. Please like, leave a comment & subscribe.

Download

0 formats

No download links available.

Move Borderless Form Using Mouse Down Event | NatokHD