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

Reverse Tab equivilent of this.ProcessTabKey()?

I have an application that is modifying the ENTER key to use
this.ProcessTabKey() for data entry screens (replacing a green-screen
Telenet app). I would like to do the equivilent of ths.ProcessReverseTab()
for ALT-ENTER, but no such animal exists. Does anyone know how this could be
done?
Jun 27 '08 #1
3 2182
You can check the static Control.ModifierKeys property:

if ((Control.ModifierKeys & Keys.Alt) == Keys.Alt)
{
// alt is pressed
}

Note that you don't actually have to be in a Form to do this; it even
works from a console exe if you add a reference to System.Windows.Forms.

Marc
Jun 27 '08 #2
If you meant "how to move backwards", Control.SelectNextControl has a
"forward" argument; specify false and you'll move backwards.

Marc
Jun 27 '08 #3
Thank you. Moving back is what I had in mind. There didn't seem to be an
equivielent Process key for this.

"Marc Gravell" <ma**********@gmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
If you meant "how to move backwards", Control.SelectNextControl has a
"forward" argument; specify false and you'll move backwards.

Marc

Jun 27 '08 #4

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

Similar topics

2
by: Steve Harrison | last post by:
Hi, I have several controls on one VB.NET form, which uses the tabindex to set the focus in the correct order when tab is pressed. However, if "Yes" is selected in combo1, and tab is pressed...
4
by: Darren | last post by:
Hi. I have a javascript menu system which uses the "elementFromPoint" function. However Netscape/Mozilla doesn't recognise this function. Does it have an equivilent? Thanks -- Darren
2
by: John Galt | last post by:
I was looking at a VB.NET program that is passing strings to method calls using ByVal. I was wondering if this is for a reason and, if so, should a C# conversion of code samples from VB.NET also...
3
by: Bill | last post by:
I have a situation where I want to autotab to the next control when the previous control is defnitively completed with data. The dataentry controls are arranged in a grid and are named, for...
4
by: trint | last post by:
I can't find the followings equivilent: flashPlayer.Movie = Application.StartupPath + @"/Cooler2.swf"; flashPlayer.FSCommand +=new...
2
by: Steve1 via DotNetMonster.com | last post by:
Hi all, I'm producing a data conversion app in C#. I have the code already written in VB6. I would to know if anyone knows of any links that shows the VB6 function/syntax equivilent in C#? ...
1
by: Ryan Ternier | last post by:
I'm trying to find an equivilent function to VB's DatePart function. I have a Year, Month, the Day of week (Sunday, monday etc.) and the week (week 1, week 2) and I need to find the date of that...
3
by: Abubakar | last post by:
Hi, I have used the Monitor/manualresetevent class in .net to sycnhronize threads in C#, right now I'm programming in pure c++ and win32 and want to acheive the same functionality. Whats the...
3
daniel aristidou
by: daniel aristidou | last post by:
Hi guys is there an equivilent of try (vb08) in vb6 If you dont know what try does in vb08 ... it tries to do something but if there is an error it simply ignores it. Try also contains commands...
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:
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: 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
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
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
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.