Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bug with listview in C# - 2 clicks required to select item

0 views
Skip to first unread message

Bruce Bakely

unread,
Aug 22, 2003, 1:30:36 PM8/22/03
to
I have a simple listview using view=Details. When the user clicks on an item
I pop up a message. After the user hits OK on the popup message, the
original form is now dead to user input until a click is made anywhere on
the form. In other words, in order to select another item in the list, you
have to tap somewhere on the form, and then tap on the item.
Any ideas? Has anyone else seen this behavior, or NOT seen this behavior on
different hardware?
I have a symbol PDT8100 using pocket pc 2002, C#.
It works fine on the emulator.

my code:
private void Form1_Load(object sender, System.EventArgs e)

{

listView1.Columns.Add("Item", 50, HorizontalAlignment.Center);

listView1.Items.Add(new ListViewItem("item1"));

listView1.Items.Add(new ListViewItem("item2"));

}

private void listView1_SelectedIndexChanged(object sender, System.EventArgs
e)

{

if (listView1.SelectedIndices.Count == 1)

MessageBox.Show("listview");

//listView1.Focus(); // doesn't help

}


Shaun Wilde

unread,
Aug 23, 2003, 6:43:00 AM8/23/03
to
I've seen this as well

have you tried giving your form the focus after the popup dialog box has
gone rather than the list view

shaun

"Bruce Bakely" <NOSPAM_br...@pyxis.com> wrote in message
news:ujv6ZONa...@TK2MSFTNGP12.phx.gbl...


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003


Keld Laursen

unread,
Aug 25, 2003, 2:11:56 AM8/25/03
to
"Shaun Wilde" <shaun...@nospam.co.uk> wrote in message
news:eqlPUNWa...@TK2MSFTNGP10.phx.gbl...

> I've seen this as well
>
> have you tried giving your form the focus after the popup dialog box has
> gone rather than the list view

Or maybe both the ListView and the form?

/Keld Laursen


Bruce Bakely

unread,
Aug 25, 2003, 4:38:56 PM8/25/03
to
Yep. I've tried combinations of giving the ListView, ListViewItems, and/or
form the focus, as well as manually turning off the ListViewItem selected
property. My guess is that ListView is just broken in the compact framework,
no workaround.


"Keld Laursen" <k...@ideelektronik.dk> wrote in message
news:uoe7L$saDHA...@TK2MSFTNGP09.phx.gbl...

Bruce Bakely

unread,
Aug 26, 2003, 12:40:28 PM8/26/03
to
Yep. I've tried playing with .Focus and .Selected, in various combinations.
As far as I can tell this is a bug in the compact framework with no
workaround.


"Keld Laursen" <k...@ideelektronik.dk> wrote in message
news:uoe7L$saDHA...@TK2MSFTNGP09.phx.gbl...

Carlton Lane [MS]

unread,
Aug 29, 2003, 1:45:36 PM8/29/03
to

Hi Bruce,

I've just been talking with the ListView devs and we repro'd the bug. I've
opened a bug against the dev and we're tracking this issue now.
Thank you very much for the feedback and I'll make sure we get this fixed.

Carlton Lane.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Reply-To: "Bruce Bakely" <NOSPAM_br...@pyxis.com>
| From: "Bruce Bakely" <NOSPAM_br...@pyxis.com>
| References: <ujv6ZONa...@TK2MSFTNGP12.phx.gbl>
<eqlPUNWa...@TK2MSFTNGP10.phx.gbl>
<uoe7L$saDHA...@TK2MSFTNGP09.phx.gbl>
| Subject: Re: bug with listview in C# - 2 clicks required to select item
| Date: Mon, 25 Aug 2003 13:38:56 -0700
| Lines: 22
| Organization: Pyxis
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <egWvul0a...@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: fw254.pyxis.com 205.162.243.254
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP0
8.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:31924
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

0 new messages