Solved

Move a textbox from VBA

Posted on 2002-04-02
3
471 Views
Last Modified: 2011-09-20
Hi...
im trying to have a text box that is hidden move to the position of my mouse when my mouse is rightclieckd on my flexgrid..

IN VB i used just go the mousedown event and
if button = vbrightbutton then
lstList.move X, Y
but in msaccess there is no move

how do you do this in msaccess
thanx
0
Comment
Question by:Joester20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
Mach1pro earned 100 total points
ID: 6914776
In the MouseDown event of the Form and especially the detail section of the form, add the following code

If Button = 2 Then
    Text0.Top = Y    ' replace Text0 with the name of your textbox
    Text0.Left = X
End If
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7082504
for Joester20

No comment has been added for the last two months.
So it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
 - Answered by: Mach1pro  
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7099878
Thanks for your help, Nic;o) .
Finalized by Moondancer - EE Moderator

0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question