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. This video shows how a borderless form can be both moved and resized using a combination of mouse down and mouse move events. Doing this requires surprisingly little code and very few API calls.
Related article with all code and example app: https://isladogs.co.uk/move-resize-bo...
Times:
0:00 Intro
0:32 Review of ideas involved
1:30 DEMO - drag boderless form to new position using mouse down event. Cursor changes to 4 headed arrow whilst dragging
1:49 DEMO - resize borderless form by holding down mouse close to form edge (within 100 twips) and dragging with mouse in chosen direction. Detail section is resized
Can expand or shrink form. Mouse cursor changes to indicate direction form e dge can be dragged depending on location
2:48 DEMO - also works for borderless form with no header/footer sections
3:11 VBA Code - DragFormWindow Me to move form using mouse based on two APIs
4:27 VBA Code - ResizeFormWindow Me, resizeDir. Thanks to Nick Thissen for the code (written in vb.net) and Xevi Batlle for converting it to VBA
5:48 Bonus item - move entire Access applciation window using mouse on form
6:50 Thanks for watching. Please like, leave a comment & subscribe.