Solved

Move a textbox from VBA

Posted on 2002-04-02
3
466 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
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

831 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