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

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

0
Bob
5/16/2007 5:23:12 AM
access.formscoding 7494 articles. 0 followers. Follow

2 Replies
578 Views

Similar Articles

[PageSpeed] 32

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.


"Phil" <Phil@discussions.microsoft.com> wrote in message 
news:2F6486E4-DC67-4BDC-9FF9-FD3D636F8B37@microsoft.com...
>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
>
> "Bob" wrote:
>
>> 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
>>
>> 


0
Stephen
5/16/2007 9:00:19 PM
On May 16, 11:33 pm, Phil <P...@discussions.microsoft.com> wrote:
> 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
>
>
>
> "Bob" wrote:
> > 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- Hide quoted text -
>
> - 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...

0
Bob
5/17/2007 12:21:47 AM
Reply:

Similar Artilces:

create a roster
How can you create a weekly roster in which functions can be assigned to more than 10 people. The roster should be updatable, so that when holidays and days off are marked on the weekly roster they will be taken account of it future rosters. ...

I can't type all the symbols
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel I wanted to type the letter e with a symbol indicating the long vowel sound. In the Symbols menu I find some vowels with symbols over them (but not the one I want), and other pronunciation symbols with no letter under them. One of them seems to be the long-vowel symbol. How can I type the symbol so that it appears over the letter? In article <59bb7ddc.-1@webcrossing.JaKIaxP2ac0>, <andreajackson123@charter.net@officeformac.com> wrote: >I wanted to >type the letter e with a symbol indicating...

Reports and Forms Customizations After Migration to GP8
Hi i have migrated my Test Server to GP 8 and i Exported the Modified Reports and Forms and imported them again to the Test Server, the screen Labels are updated to the new lables but the fields formats didnt update for example the phone field format returned to the original. how can i solve this issue? regards Nader Formats are not transferred using packages. You will either need to keep your original forms and reports dictionaries and upgrade them, or remake the format changes. I would suggest recording the format changes using a macro, so they can easily be re-run if required. ...

importing or creating reference footnotes
I am trying to import a word document into publisher and it has reference footnotes within the document. The reference footnotes are not coming into the publisher document with the reference footnotes. Correct, they will not up to Publisher 2003. In Publisher 2003 depending on which version of Word you are using if they will or not. -- "If you don't know where you are going, any road will take you there!" ...

I can see all my fonts in publisher...
I have them all in my font folder. I only have like 12 fonts the common one. But i have a complete list in my font folder. I am using 2003 proffessional office on my laptop and Main PC. I can cee all the fonts on my main PC but not my Laptop. how do I gt them to show up to use??? Corey If you are creating a web page, you will only have 11 fonts. -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com "Corey" <Corey@discussions.microsoft.com> wrote in message news:934E5879-7E30-4663-ADB1-332EE2CDFC65@microsoft.com... &...

Mailbox not created when AD account created
A couple of days ago I noticed that I created a user account but the 'Email Addresses' tab of the user properies did not list any email addresses. Subsequent new user accounts have all experienced the same. I researched the knowledge and tried the recommended solutions to either manaully start the recipient update service or rebuild te recipient update service. Neither recommendation has resulted in a mailbox being created for this particular user or any additional user that I have created since this error first showed up. I performed a Windows update last Thursday and so I bel...

Task Create - Status
I'm trying to make a simple task, when a user owner is assigned a task in CRM, it receives an email letting it know it has one. I have the following below, but it is not generating one when i assign one manually in the CRM. What to do? I've tried both the following: When task is created E-Mail to:[owner];Subject test As well as: When task is created if Task activity status = Open then E-Mail to:[owner];Subject test I've checked the mailserver many times over, and I can send emails manually from the CRM so you can rule that out Tested out ok on our end. Some ideas:...

Problem opening Forms
I have several Forms that do not open properly... When I open Access, click on the Forms object, and then choose a particular Form, it opens to a blank screen. On the blank screen, I can see the Form when I select design view, however, when I choose Form view, nothing's there. I've done some playing around and have figured out a way to get the Form to display (in Form view). I go to design view and change 'Data Entry' to 'No'. What's also strange is that my switchboard will open the Form (in Form view) every time. It's only when I open the Form without the...

Drag Drop problem inCListCtrl
Hello , I have a owner drawn list view which displays the thumbnail images of image files along with other related information like destination of file and file properties. I am trying to drop drop the images in the list view but the following takes place : CreateDragImage returns me a CImageList pointer which is not null , when i do a GetImageInfo using the CImageList pointer the IMAGEINFO structure contains NULL values.Also BeginDrag returns FALSE. What am i doing wrong, please do help me. Thanks in Advance example: www.codeguru.com/Cpp/controls/ listview/dragdrop/article.php/c941/ &quo...

Help Creating XmlNode / XmlAttribute Elegantly
I am creating a configuration class to read / write a standard configuration file. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="ConnectionString" value="server=(local);" /> </appSettings> </configuration> I am using a XmlDocument for my base implementation. I am looking to see if there is a better way to add a new node / attribute than using XmlDocument.InnerXml. I would consider this to be a hack but couldn't really see another way of doing this without definin...

Can I make my Contacts Folder my Default
Does anyone know if I can make my contact folder the default folder rather than the Global Address List? On 3/8/2010 7:36 PM, Wendy wrote: > Does anyone know if I can make my contact folder the default folder rather > than the Global Address List? Sure. Ctrl-Shift-B (or just click the Address Book icon) Tools -> Options -- Leonid S. Knyshov Crashproof Solutions 510-282-1008 Twitter: @wiseleo http://crashproofsolutions.com Microsoft Small Business Specialist Please vote "helpful" if I helped you :) ...

Controlling display of forms
Hi, I'm trying to control what parts of a form are visible or not depending on the user of the computer. I've managed to find and adapt some code to tell me who the user is and I have a table set up with user names and a permission level (1 or 0) I can manually alter the On_Load event of my form to hide the parts I want (tabs) Can anybody help me out with putting it all together so that the forms On_Load event looks at GetUserName function which looks at the UserPermissions table and sets Visible True or False accordingly. This is taking me so long and it looks like it ought ...

Create external database
Hi all. I need to create an external database (file). On a site I found this code: ------------------------------------------------------ Function CreateLinkedExternalTable(strTargetDB As String, strProviderString As String, strSourceTbl As String, strLinkTblName As String) As String 'strTargetDB = Source Database Name 'strProviderString = Not used, currently hard coded 'strSourceTbl = Source Table name in the database we are linking too. 'strLinkTblName = Table name we would like to see in the Access Database. Dim catDB As ADOX.Catalog Dim tblLink As...

Why can't I see clipart on word or publisher.
I have just bought a new desktop computer and loaded microsoft office 2003. When i insert clipart onto a page in publisher or word, I cannot see the picture. the handles are on the page put picture isn't what can I do? Read the third FAQ here Q: Why can I not see images/shapes/lines when editing my publication? http://ed.mvps.org/Static.aspx?=Publisher/FAQs -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com http://officebeta.iponet.net/en-us/publisher/FX100649111033.aspx "punch" <punch@discussions.microsoft.com> wro...

How to create pie chart with %
I have got a problem that I don't if excel could help me to calculate the % within a column and draw a pie chart. My case is I have a column containing a series of numbers. e.g. 1,4,8,1,3,9,11,2,4,5,6,.........etc I want to draw a pie chart that showing 1-3 , 4-6, 7-9, >9 with the corresponding % inside that column. Can anyone tell me how can I make it ? Ray - You need to calculate the frequencies in your data. Let's assume your data is in A1:A12. In B1:B3 enter these numbers, the upper limits on the groupings: 3 6 9 You can enter ">9" into B4 witho...

How do I turn on drag and drop in MS Word 2007?
It seems that drag and drop has stopped working..... I have no clue why. There are instructions on how to turn drag and drop on/off for MS Word 2003, but I can't find the directions on how to do this for Word 2007. I'd like to turn this back on. Can anyone help? Click on the the Office Button (top/left) and at the bottom of that window click on Word Options. In that window choose Advanced. Drag and Drop is the third choice down. (That said... it doesn't always work even when you have selected it. Sigh) The problem could have to do with the Symbols dialog box. When you...

Continuous form record number
I have a form whose default view is 'continuous form'. Then when I click a button I need to delete the record where the mouse is (was just) placed. How can I find out the record number? Alternatively any idea is welcome. Thanks Henry "H. Martins" <hjrmartins@gmail.com> wrote in message news:b4ab14e1-51c6-4c16-8a78-bc7df76670de@k31g2000vbu.googlegroups.com... >I have a form whose default view is 'continuous form'. > > Then when I click a button I need to delete the record where the mouse > is (was just) placed. > > Ho...

Email address not created when a new user is created
All, This issue recently happened in my company. Upon creating a new user, the policy was set to create the smtp and X400 address automaticaly. Now when we create a user the smtp and x400 addresses are not created, and when attempting to setup the new user in outlook, the address cant be found. We are using exchange 2003 SP1 on Win2k3 servers. On Wed, 13 Jul 2005 06:49:07 -0700, "Bryan" <Bryan@discussions.microsoft.com> wrote: >All, >This issue recently happened in my company. Upon creating a new user, the >policy was set to create the smtp and X400 addres...

How can I use strikethrough in a Publisher 2007 document?
I want to use strikethrough on some text within a textbox in a Publisher 2007 document, but I cannot find that option under formatting font. Under the Edit tab, I see "Edit Story Using Microsoft Word" and this takes me to a screen where I can get at the MSWord strikethrough formatting, but when I close that window, the strikethrough disappears. The only way to have strikethrough in Publisher is to select the line tool and draw a line through the text. -- Don Vancouver, USA "JoAnn" <JoAnn@discussions.microsoft.com> wrote in message news:49640...

fill html form with CHtmlView
Suppose there is a web site http://www.somesite.com asking me to fill a lot information to proceed. I am writing a SDI program with CHtmlView to automate the process. The program is just like a simple web browser. Suppose here is the html of http://www.somesite.com <html> <body> .... <form> <input type="text" name="info"> </form> .... </body> </html> I set my CHtmlView with Navigate2(_T("http://www.somesite.com")); and I want to put my information automatically in the form. How can I do it in CHtmlView? Thanks, John...

when form created
I have a form which was created by someone else (not a form template) which is like a questionnaire with empty boxes to be completed. When the boxes are typed in all the margins move to accommodate the words being typed. Is there a way to fix/lock the original form and then just fill in the blank boxes? I suspect this is set up as a table with auto resizing enabled. Displaying table gridlines (Table | Show Gridlines) will help you see what you're dealing with. Then select the table, go to the Table tab of Table Properties, click Options, and clear the check box for "A...

Exchange 2010 MRM, no log files being created
I'm hoping someone can help me with this issue....it has been driving me crazy for days. I have enabled MRM logging on our exchange server, and I can see that some of the policies are working when I run start-managedfolderassistant. We have a retention policy tag on the deleteditems folder, and this does work. The problem is I am not getting any files in the MRM log directory. C:\Program Files\Microsoft\Exchange Server\V14\Logging\Managed Folder Assistant Events 9021 and 9022 are logged in the Application log, but where are the files? Below is the output of my mai...

Creating a Brochure
How do you create a 3-column brochure from scratch for Publisher 2002? I can only find the directions for the 2003 version. Quick help would be appreciated, project is due Monday. Create a three-panel or four-panel folded publication http://office.microsoft.com/en-us/assistance/HP011646681033.aspx Scroll down to the section that says "Build a three-panel or four-panel publications from scratch." -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com "Derek" <Derek@discussions.microsoft.com> wrote in message news...

Can't open excel documents
When I try to open an excel doc is 'stalls' ... getting stuck on 'virus scan' dialouge at the bottom of the sheet. I can open excel w/o a file and save one, but when I try opening an existing one, Excel simply won't do it and I eventually have to contl.alt.del. it in order to continue. Any ideas? ...

How to create Access macro shortcut
I'm still using Access 97 and saw something the other day that I would like to use that was in Access 2000. In an Access 2000 database, there was a .mam file in a directory that launched the Access 2000 program and ran a macro. How do you set this up? Can it be done in Access 97? If so, how? Hi. > How do you set this up? Select the macro in the Database Window and right click with your mouse, then select "Create Shortcut..." in the pop-up menu. Follow the prompts for where to place the shortcut and what to name it. The default is: <PathToDeskTopDir>\Shortcut ...