By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,683 Members | 1,387 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,683 IT Pros & Developers. It's quick & easy.

Listview question.

P: n/a
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)
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
* "Joe Bleaux" <jo*@bleaux.org> scripsit:
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.


Why? Why a non-standard behavior?

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Because I'm using the keypress event to manipulate the contents of the
listitem. In my program in this particular instance, when I press t, I want
to put a timestamp in the listitem. After the timestamp is inserted, the
selected item changes to whatever is next that starts with a t. It's a real
pain in the butt. If I stop the change altogether, or at least change what
it switches to, eg, the next listitem, that would be much better.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...
* "Joe Bleaux" <jo*@bleaux.org> scripsit:
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.


Why? Why a non-standard behavior?

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #3

P: n/a
"Joe Bleaux" <jo*@bleaux.org> wrote in message
news:uS**************@tk2msftngp13.phx.gbl...
Because I'm using the keypress event to manipulate the contents of
the listitem.
Very, very, *very* bad idea.

ListViews have been around for quite a while, now and people
(i.e. your Users) "know" how to use them. If you start replacing
existing, standard, behaviours with your own, non-standard ones,
your Users are going to get very confused.
when I press t, I want to put a timestamp in the listitem.


Try doing this on Ctrl-T instead. Users are generally much happier
in accepting that control keys differ from program to program.

HTH,
Phill W.
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.