473,394 Members | 1,932 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,394 software developers and data experts.

Tab and enter key not function in application. Have to use mouse only

1
Hi,

First of all, i have successfully install my application in Windows 7 and it run correctly, which means i can use tab or enter key to move to the next control.
After a week, it suddenly cannot focus from one control to another either by press on tab key on enter key. I always have to click to get focus. Can somebody help me regarding this issue?

I use the code below in my application to move to onether control when enter key is pressed.

Expand|Select|Wrap|Line Numbers
  1. Public Sub EnterAsTab(KeyAscii As Integer)
  2.     If KeyAscii = 13 Then 
  3.        keybd_event VK_TAB, 0, 0, 0 'send a tab
  4.        KeyAscii = 0    
  5.     End If
  6. end sub
  7.  
Jul 8 '10 #1
1 1281
Try this code


If KeyAscii = 13 Then
SendKeys "{Tab}"
KeyAscii = 0
End If
Jul 12 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Jacek Generowicz | last post by:
Given fncs = args = How should one spell results = map(lambda f,a: f(a), fncs, args) in order to get the result most quickly ?
2
by: aa | last post by:
I have a section of a website which is heavily loaded with technical terminoogy. I have a Glossary database running from ASP code which accepts a string and returnd it's meaning (is there is...
354
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets...
5
by: danny.myint | last post by:
I was under the assumption that javascript loads all the <head></head> elements before processing the <body> tag in Mozilla/Netscape/Firefox. It doesn't seem like it, with my problem. I have...
9
by: PyPK | last post by:
Hi if I have a function called tmp=0 def execute(): tmp = tmp+1 return tmp also I have def func1(): execute() ....
1
by: Tor Lund | last post by:
how do i create a function that does "something" every time i press enter. i have used the form.AcceptButton property but it does not override if a button has the focus. then enter will ´click the...
1
by: Matthew Wieder | last post by:
Hi - I wanted to capture the enter button on a form since I have a datagrid with the first column being a delete button and if someone hits enter it deletes the first record. I coded: private...
1
by: Klaasjan Mors | last post by:
Hi, I have the following problem. In a datetimepicker i want to enter only using numbers. eg. date 01-12-2003 Now you have to use a arrowkey after 01 and 12 I want to continu automatic after...
6
by: Ronald Mai | last post by:
In my opinion, Ellipsis might be in the middle, not only in leftmost or rightmost, so a placeholder approach can be much more flexible and convenient. Here is a reference implementation: _ =...
23
by: Dan Tallent | last post by:
A textbox has a attribute for ReadOnly. This seems like such a simple concept. When a textbox is set to read only the user cannot change the contents of the field. I have been trying to find...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.