Creating a form that can be dragged from any click within the 'Detail' section

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Hi all,

I'm trying to create a dashboard and I want the form to be moveable,
however I have removed the control box and I don't want the form to
have a border (hence no title row that can be used to drag the form).
How do I allow a click from either a control or the detail section to
enable the form to be dragged? Any help would be appreciated.

Cheers,

Bob
 
I dont think you can do it using a form, have you though about using a custom
menu instead, although this would still have a title bar. From a Windows GUI
design basis you are going against everything the user has already learnt,
everyone who uses windows knows the titlebar can be used to move the window,
hence remove the title bar, they will not expect to be able to move it, I
would personally leave a title bar

your choice however

Phil
 
Phil I agree with your suggestions to stick with the standard Window UI. But
if the OP really must have this interface it is possible using the Form's
MouseMove etc. events. I and others have posted code how to do this over the
years. A GoogleGroups search should yield several relevant threads.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
I dont think you can do it using a form, have you though about using a custom
menu instead, although this would still have a title bar. From a Windows GUI
design basis you are going against everything the user has already learnt,
everyone who uses windows knows the titlebar can be used to move the window,
hence remove the title bar, they will not expect to be able to move it, I
would personally leave a title bar

your choice however

Phil






- Show quoted text -

I'm positive there's a way to do it, its just a matter of how lengthy
the code will be. I can think of a way it could work, I'm just not
sure exactly how to code it.. I'm thinking that on the first click
event you could check to see where the mouse is and then move the form
according to the change in the mouse movement, then the second click
turns off the dragging, or something like that...
 
Back
Top