473,396 Members | 1,987 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.

Listview Keypress

Is there any way to change the column that the Listview uses for the
keypress event?
Item 0 is the employee number, Item 1 is the Last name... I want the
keypress to scroll through last name.

Thanks!
Matt
Nov 20 '05 #1
1 2540
On Wed, 12 Nov 2003 10:38:15 -0500, MattG wrote:
Is there any way to change the column that the Listview uses for the
keypress event?
Item 0 is the employee number, Item 1 is the Last name... I want the
keypress to scroll through last name.

Thanks!
Matt


you can intercept the keypress on the host form level (using
Control.ProcessDialogKey() or just setting form.KeyPreview=true) and
checking the keys yourself, and doing all the grunt work in the list view
when needed.
other than that... I don't think so.
--
Roy Osherove
weblog: http://www.iserializable.com
Nov 20 '05 #2

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

Similar topics

1
by: Rene | last post by:
Hi, I am running is some problems with the KeyPreview and KeyPress events. The KeyPress event is only triggered when there this an focusable control on the form. When all controls are disabled...
0
by: Joe Bleaux | last post by:
I'm using a list view control, and I've got a lot of code tied to the keypress event. It's kind of important that it stays on keypress due to the nature of the application. Every time I press a...
3
by: Joe Bleaux | last post by:
When you press a button in a list view.... say 't', it selects the next listitem that begins with 't'. I need to supress this behavior. Can someone help me out? Thanks. (vb.net, winxppro)
1
by: MattG | last post by:
Is there any way to change the column that the Listview uses for the keypress event? Item 0 is the employee number, Item 1 is the Last name... I want the keypress to scroll through last name. ...
2
by: Peter van der Veen | last post by:
Hi Why is there not a rowchanged event is listview??? I display some extra information when a user changed rows. i tried to use the selectedindexchaned event, but get errors when trying to...
4
by: Tom | last post by:
I have a VB.NET user control that I wrote - this control has three or four other controls on it (textbox, combobox, datetime picker, etc). Now, whenever the control is on a form and the user enters...
3
by: | last post by:
Hello, I have a ListView control in Details view. When an item is un-checked, I want to change the ForeColor. The only way I have found to do this is to loop through all the items of the...
15
by: Adam J. Schaff | last post by:
I have noticed that if a user closes a form via pressing return (either while the OK button has focus or if AcceptButton is set to OK for the form) then the "ENTER" keypress event fires ON THE...
3
by: Fia | last post by:
Hi In Visual Basic 6 I could call keypress with an integer of a choosen key. For example I could call a textbox's keypress with the number 13 (for the enter key). But now in Visual Basic .Net I...
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: 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?
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
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.