473,395 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

END and HOME keys not working in some Textboxes

I have a number of forms with large textboxes for the purposes of
editing memo fields, and just recently I've noticed some bizarre
behavior. For some textboxes the END and HOME keys do nothing, whereas
for other textboxes the END and HOME keys take the cursor to the end
and home of the text (as expected). I've isolated two textboxes and
tried comparing them but they seem to be set up in virtually the
identical manner, except for the following properties:

1. one is physically much larger than the other (although both span
multiple lines)
2. one has the Status Bar Text and the ControlTip Text set, and the
other doesn't
3. one has a Before Update event and the other doesn't (but I think
this was added after I noticed the behavior)

The forms which house the textboxes also have similar properties,
except for a couple that stand-out:

1. One has Allow Additions, and the other doesn't
2. One has the Cycle set up for Current Page, while the other is set up
for All Records
3. One has a Help file set up and the other doesn't

This is not a critical problem, but it has really got me curious.
Anybody got any ideas?

Nov 13 '05 #1
1 2086
A couple of possibilities.

1) Corrupted controls. If this is the case, you'll need to delete and
recreate the textboxes.

2) Code in the Key Down or Key Press event for the control (or the form if
Key Preview is also set to Yes) that is canceling the Home and End keys.

This is assuming that you can even get the cursor into the textbox. If the
textbox was set for Enabled = No and Locked = Yes, it would appear normal
but you wouldn't be able to get the cursor into it. If it was just Enabled =
No, it would be grayed out.

--
Wayne Morgan
MS Access MVP
"Edlueze" <ed*****@onegen.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I have a number of forms with large textboxes for the purposes of
editing memo fields, and just recently I've noticed some bizarre
behavior. For some textboxes the END and HOME keys do nothing, whereas
for other textboxes the END and HOME keys take the cursor to the end
and home of the text (as expected). I've isolated two textboxes and
tried comparing them but they seem to be set up in virtually the
identical manner, except for the following properties:

1. one is physically much larger than the other (although both span
multiple lines)
2. one has the Status Bar Text and the ControlTip Text set, and the
other doesn't
3. one has a Before Update event and the other doesn't (but I think
this was added after I noticed the behavior)

The forms which house the textboxes also have similar properties,
except for a couple that stand-out:

1. One has Allow Additions, and the other doesn't
2. One has the Cycle set up for Current Page, while the other is set up
for All Records
3. One has a Help file set up and the other doesn't

This is not a critical problem, but it has really got me curious.
Anybody got any ideas?

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Etienne Charland | last post by:
Hi, there is an application running on a remote desktop (under Citrix ICA, but the same problem applies for RDC or PC Anywhere). Now, I want to send keys to the remote application from a local app....
2
by: Richard Wakeman | last post by:
Hi - On a data entry screen with misc. input boxes, such as for Name, Telephone Number, etc., when tabing down the input screen, Access will highlight whole contents in that box. Sometimes I'd...
5
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
1
by: melanieab | last post by:
Hi again, With much help, I've finally gotten the Tab key to be recognized when a textbox is in focus, but now I'm having trouble with the up/down keys when they're focused on a custom button (on...
4
by: Mad Scientist Jr | last post by:
i am trying to set focus to a specific control depending on the outcome of a validator control and it is not working. none of these methods are working to setfocus: 1....
0
by: H. Blijlevens | last post by:
I've been debugging an application of a former colleague, and some things aren't working as they are supposed to. It's an MDI based application with 1 empty MDI Child Form as a template. For each...
3
by: RobKaratzas | last post by:
hi Folk this is frustrating as heck... 1. new keys are only showing 'Nothing' as their value... 2. VS.NET: rebuilding everything, restarted IIS, no bad XML, ... 3. old keys are still showing...
7
by: tekeste | last post by:
Private Sub combobox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles cmbcombobox1.KeyPress If Asc(e.KeyChar) = Keys.Enter Then ...
9
by: Wingot | last post by:
Hey, I am using Visual Studio 2008 Beta 2 for some application development in C#, but I presume that the following question applies equally well to any environment.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.