Solved

Move a textbox from VBA

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…

929 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now