Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 17th, 2003, 10:03 PM
uncmick uncmick is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 2 uncmick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Changing cursor location in a text box

When I click on an empty text box the cursor automatically jumps to the far left of the box no matter what part of the box I click on(which is what I want). However, when there is an input mask in the box, the cursor goes right to where I click in the box (and I have to manually move the cursor to the beginning of the string). How can I click on a text box with an input mask and have the cursor go to the far left (i.e. the beginning of the input string)???

-mh

Reply With Quote
  #2  
Old November 18th, 2003, 05:36 PM
Stev Stev is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Queensland, Australia
Posts: 256 Stev User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 53 sec
Reputation Power: 5
Put the following line into the Click event for the text box.

SendKeys "{HOME}"

This will send the Home key to the active window. It will not select the contents of the text box. If you want to do that you can use the following.

SendKeys "{END}+{HOME}"

Stev

Reply With Quote
  #3  
Old November 18th, 2003, 10:06 PM
uncmick uncmick is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 2 uncmick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks! That works perfectly. I knew there had to be a simple way to do that.

-mh

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Changing cursor location in a text box


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT